Showing posts with label step. Show all posts
Showing posts with label step. Show all posts

Sunday, March 25, 2012

activeX step never finishes.

I have an activex script which executes a query that never finishes. If I recompile the query in Management Studio before I run this step, then the step will *usually* work fine. This is the last step in a very long update process so the data has changed a great deal when this step executes.

The query always works fine in Management studio btw.

I am using BI studio to run the package.

I have tried placing a step before this that marks the query for recompilation but that doesnt seem to work. Any ideas how to resolve this?

Why ActiveX?|||it loops through the result set and sends out an email for each record. The package was originally a dts 2000 package so I just kept it as is. If theres a better way to do this in SSIS I would love to know.|||Use an Execute SQL task to populate an object-typed variable. Hook the SQL task to a Foreach loop which "shreds" the variable. Inside that foreach loop you could use a Send Mail task.

See if this helps: http://blogs.conchango.com/jamiethomson/archive/2005/07/04/SSIS-Nugget_3A00_-Execute-SQL-Task-into-an-object-variable-_2D00_-Shred-it-with-a-Foreach-loop.aspx

ActiveX

I have to put some ActiveX code in the first step of a DTS package, which will search thru all the files in some folder and if it finds a file with filename starting with "Test" (like TestFile.txt), the script will rename it and then use it for transforming data to SQL tables.

In VB Dir$ function could have been used, what should I use in ActiveX?

Thanks a lot for your helpI'm not sure how to rename the file but you might be able to use the xp_fileexist extended proc to see if the file is in the directory.|||This is a start:

Function Main()

Dim objFSO
Dim objFolder
Dim objFile
Dim fileName
Dim folderName

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder("\\server\share$\dir\")
folderName = "\\server\share$\dir\Archive\" & Month(Now) & Day(Now) & Year(Now) & "_" & Hour(Now) & Minute(Now) & Second(Now) & "\"

For Each objFile in objFolder.Files

objFSO.CreateFolder(folderName)

fileName = objFile.Path

objFSO.MoveFile fileName, folderName
Next

Main = DTSTaskExecResult_Success

End Function|||Now I'm getting what I need to do, thanks a lot for your help.sql

Thursday, March 22, 2012

active/passive cluster with san drive

is there anywhere i can get a step by step order for
installing an active/passive sql2000 cluster on a win2k3
platform that shares an attached san drive. i have not
performed this before and am not sure about how to set up
the san drive. do i set up the disks on one or both
systems. or do i set up the disks on one and run the mscs
setup? any info would be appreciated. thanks.
jay
Strangely enough, BOL (Books On-Line) has a very good set of instructions on
setting up a failover cluster. You start with a working MSCS cluster
(Windows 2003 help files will get you started there).
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"jay mack" <jmack@.thecreek.com> wrote in message
news:00ba01c49c16$eb424960$a501280a@.phx.gbl...
> is there anywhere i can get a step by step order for
> installing an active/passive sql2000 cluster on a win2k3
> platform that shares an attached san drive. i have not
> performed this before and am not sure about how to set up
> the san drive. do i set up the disks on one or both
> systems. or do i set up the disks on one and run the mscs
> setup? any info would be appreciated. thanks.
> jay
|||Hello Jay,
You may find this whitepaper helpful for setting up windows 2003 cluster
Step-by-step instructions for creating and configuring a typical single quorum device multi-node server cluster using a shared disk on servers running the Microsoft Windows Server 2003 Enterprise Edition and
Windows Server 2003 Datacenter Edition operating systems.
http://www.microsoft.com/downloads/d...displaylang=en
For SQL Server 2000 clustering, the following Microsoft Whitepaper is good
http://www.microsoft.com/technet/pro.../failclus.mspx
This whitepaper was released before Win2K3 and does not discuss about it. Although most of the things are same for SQL 2K Failover cluster on Win2K3, here are some things that are different/unsupported:
Installation of a Named Instance of SQL Server 2000 Virtual Server on a Windows 2003-Based Cluster Fails
http://support.microssoft.com/?id=815431
SQL Server 2000 Cluster Does Not Install on Windows Server 2003-Based Computers Where Terminal Services Is Installed
http://support.microsoft.com/?id=301520
SQL Server 2000 Is Not Supported on Windows Server 2003 Terminal Server Application Server
http://support.microsoft.com/?id=327270
Virtual SQL Server 2000 Installation Fails on Cluster That Has Eight Nodes
http://support.microsoft.com/?id=811054
SQL Server 2000 support for mounted volumes
http://support.microsoft.com/?id=819546
HTH,
Best Regards,
Uttam Parui
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
Are you secure? For information about the Strategic Technology Protection Program and to order your FREE Security Tool Kit, please visit http://www.microsoft.com/security.
Microsoft highly recommends that users with Internet access update their Microsoft software to better protect against viruses and security vulnerabilities. The easiest way to do this is to visit the following websites:
http://www.microsoft.com/protect
http://www.microsoft.com/security/guidance/default.mspx

Active/Active/Active without SAN

I read that its possible to implement an Active/Active/Active with SQL 2000
on Win Server 2003 Ent without SAN but could not find a good step by step
howtos to it.
Could some kind gentlemen point me to a good article ? please and thanks in
advance.
SCSI clusters only support two nodes. As far as Active/Active/Active
terminology, that really doesn't express what your intent is. The new
terminology is Multi-instance and you need to state how many nodes and SQL
instances you are trying to build in your cluster. I.E I want to build a
four node cluster with three SQL instances.
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"Lewis" <Lewis@.discussions.microsoft.com> wrote in message
news:3C882765-40EE-424E-8BEF-A5F768D2207D@.microsoft.com...
>I read that its possible to implement an Active/Active/Active with SQL 2000
> on Win Server 2003 Ent without SAN but could not find a good step by step
> howtos to it.
> Could some kind gentlemen point me to a good article ? please and thanks
> in
> advance.
|||My setup is a 2 data center, 2 server in location and 1 single in another. I
would like to implement a fail safe SQL system. So this will be a 3 node
system and I am intending that at any single update to database, all 3 will
be updated instantly. Because its not in the same datacenter, therefore
implementing a SAN is not possible, so with this in mind can my original
question be possible and is there any Howtos document to follow.. appreciate
any assistance.
"Geoff N. Hiten" wrote:

> SCSI clusters only support two nodes. As far as Active/Active/Active
> terminology, that really doesn't express what your intent is. The new
> terminology is Multi-instance and you need to state how many nodes and SQL
> instances you are trying to build in your cluster. I.E I want to build a
> four node cluster with three SQL instances.
> --
> Geoff N. Hiten
> Senior Database Administrator
> Microsoft SQL Server MVP
>
> "Lewis" <Lewis@.discussions.microsoft.com> wrote in message
> news:3C882765-40EE-424E-8BEF-A5F768D2207D@.microsoft.com...
>
>
|||What you are asking about is a Geo-cluster or a geographically separated
cluster. NSI makes some products that can give you this functionality. Some
SAN vendors also handle SAN-level data replication for disaster
recovery/fault tolerance setups. There are no built-in features in SQL
Server 2000 to allow what you are asking for. SQL Server 2005 adds a new
technology called Database Mirroring that allows you to build a multi-site
high-availability solution.
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"Lewis" <Lewis@.discussions.microsoft.com> wrote in message
news:CDB44275-9E6D-4BC7-AB9F-5AC68D0ECF77@.microsoft.com...[vbcol=seagreen]
> My setup is a 2 data center, 2 server in location and 1 single in another.
> I
> would like to implement a fail safe SQL system. So this will be a 3 node
> system and I am intending that at any single update to database, all 3
> will
> be updated instantly. Because its not in the same datacenter, therefore
> implementing a SAN is not possible, so with this in mind can my original
> question be possible and is there any Howtos document to follow..
> appreciate
> any assistance.
> "Geoff N. Hiten" wrote:
|||Sorry Geoff.N, if its not troublesome, may I communicate with u via email or
MSN, I really appreciate if its possible to understand better on this subject.
"Geoff N. Hiten" wrote:

> What you are asking about is a Geo-cluster or a geographically separated
> cluster. NSI makes some products that can give you this functionality. Some
> SAN vendors also handle SAN-level data replication for disaster
> recovery/fault tolerance setups. There are no built-in features in SQL
> Server 2000 to allow what you are asking for. SQL Server 2005 adds a new
> technology called Database Mirroring that allows you to build a multi-site
> high-availability solution.
> --
> Geoff N. Hiten
> Senior Database Administrator
> Microsoft SQL Server MVP
> "Lewis" <Lewis@.discussions.microsoft.com> wrote in message
> news:CDB44275-9E6D-4BC7-AB9F-5AC68D0ECF77@.microsoft.com...
>
>
|||My MSN is lewisteo@.hotmail.com
"Geoff N. Hiten" wrote:

> What you are asking about is a Geo-cluster or a geographically separated
> cluster. NSI makes some products that can give you this functionality. Some
> SAN vendors also handle SAN-level data replication for disaster
> recovery/fault tolerance setups. There are no built-in features in SQL
> Server 2000 to allow what you are asking for. SQL Server 2005 adds a new
> technology called Database Mirroring that allows you to build a multi-site
> high-availability solution.
> --
> Geoff N. Hiten
> Senior Database Administrator
> Microsoft SQL Server MVP
> "Lewis" <Lewis@.discussions.microsoft.com> wrote in message
> news:CDB44275-9E6D-4BC7-AB9F-5AC68D0ECF77@.microsoft.com...
>
>
|||I prefer to assist on the public newsgroups where everyone can benefit from
the discussions. Private assistance is known as "consulting" and is
generally done for pay.
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"Lewis" <Lewis@.discussions.microsoft.com> wrote in message
news:60368F4E-899E-4833-9ED6-591FF5A3535C@.microsoft.com...[vbcol=seagreen]
> Sorry Geoff.N, if its not troublesome, may I communicate with u via email
> or
> MSN, I really appreciate if its possible to understand better on this
> subject.
> "Geoff N. Hiten" wrote:
|||Not a problem, as I was saying, my setup is such:
Data Center 1:
2 x server with Win 2K3 Server EE / MS SQL 2000 E, lease line to the
internet, another lease line to data center 2.
Data Center 2:
1 x server with Win 2K3 Server EE / MS SQL 2000 E, lease line to the
internet and another leased to data center 1.
I would like to have all servers in both data center clustered for
redundancy, is this possible ?
"Geoff N. Hiten" wrote:

> I prefer to assist on the public newsgroups where everyone can benefit from
> the discussions. Private assistance is known as "consulting" and is
> generally done for pay.
> --
> Geoff N. Hiten
> Senior Database Administrator
> Microsoft SQL Server MVP
> "Lewis" <Lewis@.discussions.microsoft.com> wrote in message
> news:60368F4E-899E-4833-9ED6-591FF5A3535C@.microsoft.com...
>
>
|||At this time, you cannot cluster using native SQL tools across a geographic
separation. Also, I think you may have an incomplete understanding of how
clustering works and what it actually offers. The following article is a
good starting point. It mostly describes running in a Windows 2000
environment. There are a few technical differences when running on Windows
2003, but the fundamentals are the same.
Microsoft Whitepaper - SQL Server 2000 Failover Clustering
http://www.microsoft.com/technet/pro.../failclus.mspx
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"Lewis" <Lewis@.discussions.microsoft.com> wrote in message
news:1D291D57-DB1E-439B-806C-91F4D83673DF@.microsoft.com...[vbcol=seagreen]
> Not a problem, as I was saying, my setup is such:
> Data Center 1:
> 2 x server with Win 2K3 Server EE / MS SQL 2000 E, lease line to the
> internet, another lease line to data center 2.
> Data Center 2:
> 1 x server with Win 2K3 Server EE / MS SQL 2000 E, lease line to the
> internet and another leased to data center 1.
> I would like to have all servers in both data center clustered for
> redundancy, is this possible ?
> "Geoff N. Hiten" wrote:

Active/Active configuration

Few questions on Active/Active configuration (SQL 2000):
-Any articles on setting up a two node Active/Active configuration (ideally
step by step)? Almost everything out there is on Active/Passive.
-Since there are at minimum 2 instances running at the same time on a two
node active/active configuration, is there still 1 virtual IP address? If so,
how does sql server knows which instance an application/user is refering to?
-On an active/passive configuation, microsoft recommends two networks
(public/private) but it can be done with only 1 (not recommended but
possible). Does this also apply on an Active/Active configurtion? We are
using blade servers and only 1 network can be configured so I want to make
sure that Active/Active can work with only 1 network.
-We have 2 main databases and we are planning to have one database on each
node. Would'nt this have a better performance instead of having both database
on one server (active/passive). I am aware that clustering is for
availability only but it seems like we could get a better performance in
active/active. Is this a valid assumption?
Thank you all
--
System Eng.
MSc in CS, MCSE4, IBM Certified MQ 5.3 Administrator
"I saw it work in a cartoon once so I am pretty sure I can do it."
> -Any articles on setting up a two node Active/Active configuration (ideally
> step by step)? Almost everything out there is on Active/Passive.
Setting up another instance in a cluster is no different than setting up the
first instance. Books Online has detailed steps.

> -Since there are at minimum 2 instances running at the same time on a two
> node active/active configuration, is there still 1 virtual IP address? If so,
> how does sql server knows which instance an application/user is refering to?
You need a separate IP addresse for each clustered instance.

> -On an active/passive configuation, microsoft recommends two networks
> (public/private) but it can be done with only 1 (not recommended but
> possible). Does this also apply on an Active/Active configurtion? We are
> using blade servers and only 1 network can be configured so I want to make
> sure that Active/Active can work with only 1 network.
Still applies. But since the purpose of a failover cluster is to provide
high availability, you really shouldn't share a single network. That kind of
defeats the HA purpose.

> -We have 2 main databases and we are planning to have one database on each
> node. Would'nt this have a better performance instead of having both database
> on one server (active/passive). I am aware that clustering is for
> availability only but it seems like we could get a better performance in
> active/active. Is this a valid assumption?
You may get better performance by virute of running each database on its own
host, thus using separate processors, memory, network cards, HBA's, etc. That
is, if your database can take advantage of these separate hardware
components. So, if one of your databases is cpu bound, for instance, having
it on its own server would certainly help.
Linchi
"Sas" wrote:

> Few questions on Active/Active configuration (SQL 2000):
> -Any articles on setting up a two node Active/Active configuration (ideally
> step by step)? Almost everything out there is on Active/Passive.
> -Since there are at minimum 2 instances running at the same time on a two
> node active/active configuration, is there still 1 virtual IP address? If so,
> how does sql server knows which instance an application/user is refering to?
> -On an active/passive configuation, microsoft recommends two networks
> (public/private) but it can be done with only 1 (not recommended but
> possible). Does this also apply on an Active/Active configurtion? We are
> using blade servers and only 1 network can be configured so I want to make
> sure that Active/Active can work with only 1 network.
> -We have 2 main databases and we are planning to have one database on each
> node. Would'nt this have a better performance instead of having both database
> on one server (active/passive). I am aware that clustering is for
> availability only but it seems like we could get a better performance in
> active/active. Is this a valid assumption?
> Thank you all
> --
> --
> System Eng.
> MSc in CS, MCSE4, IBM Certified MQ 5.3 Administrator
> "I saw it work in a cartoon once so I am pretty sure I can do it."
|||Linchi, just make sure your application is active/active ready. Will
both nodes assign duplicate IDs such as customer or order numbers? Is
common application state stored in shared memory? Will a response get
returned to a wrong node?...and so on. www.availabilitydigest.com
On Jan 19, 3:38 pm, Linchi Shea <LinchiS...@.discussions.microsoft.com>
wrote:[vbcol=seagreen]
> first instance. Books Online has detailed steps.
>
> high availability, you really shouldn't share a single network. That kind of
> defeats the HA purpose.
> host, thus using separate processors, memory, network cards, HBA's, etc. That
> is, if your database can take advantage of these separate hardware
> components. So, if one of your databases is cpu bound, for instance, having
> it on its own server would certainly help.
> Linchi
>
> "Sas" wrote:
>
|||> Linchi, just make sure your application is active/active ready.
I don't know what you meant by 'active/active ready'. There is nothing you
need to ready your application for.

> Will both nodes assign duplicate IDs such as customer or order numbers?
The SQL instance is running on one node at a time. At no time, it would run
on both nodes, and no database can be accessed by more than one node at a
time.

> Is common application state stored in shared memory?
There is no shared memory.

> Will a response get returned to a wrong node?...and so on.
It doesn't matter what node is running the SQL instance. The instance is
accessed via a virtual IP address that is not the same as the node IP address.
Linchi
"jreederhi@.nac.net" wrote:

> Linchi, just make sure your application is active/active ready. Will
> both nodes assign duplicate IDs such as customer or order numbers? Is
> common application state stored in shared memory? Will a response get
> returned to a wrong node?...and so on. www.availabilitydigest.com
> On Jan 19, 3:38 pm, Linchi Shea <LinchiS...@.discussions.microsoft.com>
> wrote:
>
|||Linchi. It looks as if we are using different definitions of active/
active. To me, an active/active configuration is one in which two or
more nodes are executing the same application using synchronized
database copies. If one node goes down, its users can be switched to
a surviving node in seconds, thus virtually eliminating downtime due
to node failures. If you are using a single common database, there
should be no application issues. www.availabilitydigest.com
On Jan 27, 11:58 pm, Linchi Shea
<LinchiS...@.discussions.microsoft.com> wrote:[vbcol=seagreen]
> need to ready your application for.
> on both nodes, and no database can be accessed by more than one node at a
> time.
>
> accessed via a virtual IP address that is not the same as the node IP address.
> Linchi
>
> "jreede...@.nac.net" wrote:
>
>
>
>
|||That type of clustering is not supported by SQL Server 2005. Each instance
of SQL can run on a single node at a time. Other than a read-only shared
database model for reporting, there is no provision in SQL Server for
multiple SQL instances runing on different nodes to access the same data
store.
This is the major reason I dislike the Active/Passive and Active/Active
nomenclature. It is a holdover from SQL 7.0 clustering and does not
accurately reflect the capabilities of the current product. And 7.0 didn't
do this either, it just had a functional distinction between the primary
node and its failover partner that led to this unfortunate choice of names.
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
<jreederhi@.nac.net> wrote in message
news:1170095155.783463.3200@.h3g2000cwc.googlegroup s.com...
> Linchi. It looks as if we are using different definitions of active/
> active. To me, an active/active configuration is one in which two or
> more nodes are executing the same application using synchronized
> database copies. If one node goes down, its users can be switched to
> a surviving node in seconds, thus virtually eliminating downtime due
> to node failures. If you are using a single common database, there
> should be no application issues. www.availabilitydigest.com
> On Jan 27, 11:58 pm, Linchi Shea
> <LinchiS...@.discussions.microsoft.com> wrote:
>
|||<jreederhi@.nac.net> wrote in message
news:1170095155.783463.3200@.h3g2000cwc.googlegroup s.com...
> Linchi. It looks as if we are using different definitions of active/
> active. To me, an active/active configuration is one in which two or
> more nodes are executing the same application using synchronized
> database copies.
Your definition is wrong. High Availability clustering is not about
horizontal scaling.

> If one node goes down, its users can be switched to
> a surviving node in seconds, thus virtually eliminating downtime due
> to node failures.
This is what Server Clustering, or MSCS, is - it is a high availability
platform that helps reduce downtime. It does not provide horizontal scaling.
Russ Kaufmann
MVP - Windows Server - Clustering
ClusterHelp.com, a Microsoft Certified Gold Partner
Web http://www.clusterhelp.com
Blog http://msmvps.com/clusterhelp
The next ClusterHelp classes are:
Denver starting Feb 12th
NYC starting Feb 19th
London starting March 6th
|||Geoff: I suspect that the inability for two instances of a database
manager to access the same physical database is common. When we speak
of active/active, we mean that two nodes, each with its own database,
are cooperating in the same application. The two database copies are
kept in synchronism by some means, typically data replication. By
keeping replication latency small (hundreds of milliseconds with
today's products), the problem of data loss following a node failure
or of data collisions is minimized. Furthermore, the two nodes can be
geographically separated for disaster tolerance. (See http://
availabilitydigest.com/public_articles/what_is_active-active.pdf).
There are several products that support SQL Server that can provide
this capability. www.availabilitydigest.com
On Jan 29, 1:33 pm, "Geoff N. Hiten" <SQLCrafts...@.gmail.com> wrote:[vbcol=seagreen]
> That type of clustering is not supported by SQL Server 2005. Each instance
> of SQL can run on a single node at a time. Other than a read-only shared
> database model for reporting, there is no provision in SQL Server for
> multiple SQL instances runing on different nodes to access the same data
> store.
> This is the major reason I dislike the Active/Passive and Active/Active
> nomenclature. It is a holdover from SQL 7.0 clustering and does not
> accurately reflect the capabilities of the current product. And 7.0 didn't
> do this either, it just had a functional distinction between the primary
> node and its failover partner that led to this unfortunate choice of names.
> --
> Geoff N. Hiten
> Senior Database Administrator
> Microsoft SQL Server MVP
> <jreede...@.nac.net> wrote in messagenews:1170095155.783463.3200@.h3g2000cwc.goog legroups.com...
>
>
>
>
>
>
>
>
|||<jreederhi@.nac.net> wrote in message
news:1170181441.248151.311950@.j27g2000cwj.googlegr oups.com...
> Geoff: I suspect that the inability for two instances of a database
> manager to access the same physical database is common.
It is part of the shared nothing model for MSCS.

> When we speak
> of active/active, we mean that two nodes, each with its own database,
> are cooperating in the same application.
No, when you speak of active/active, you mean two nodes, each with its own
separate database in its own virtual server. Two instances of SQL, one on
each node.

> The two database copies are
> kept in synchronism by some means, typically data replication.
You are not talking about Microsoft clustering here.
Russ Kaufmann
MVP - Windows Server - Clustering
ClusterHelp.com, a Microsoft Certified Gold Partner
Web http://www.clusterhelp.com
Blog http://msmvps.com/clusterhelp
The next ClusterHelp classes are:
Denver starting Feb 12th
NYC starting Feb 19th
London starting March 6th
|||<jreederhi@.nac.net> wrote in message
news:1170181441.248151.311950@.j27g2000cwj.googlegr oups.com...
> Geoff: I suspect that the inability for two instances of a database
> manager to access the same physical database is common. When we speak
> of active/active, we mean that two nodes, each with its own database,
> are cooperating in the same application. The two database copies are
> kept in synchronism by some means, typically data replication. By
> keeping replication latency small (hundreds of milliseconds with
> today's products), the problem of data loss following a node failure
> or of data collisions is minimized. Furthermore, the two nodes can be
> geographically separated for disaster tolerance. (See http://
> availabilitydigest.com/public_articles/what_is_active-active.pdf).
> There are several products that support SQL Server that can provide
> this capability. www.availabilitydigest.com
>
I disagree with this, in relation to Microsoft Cluster Service.
The PDF file referenced here is NOT describing Active/Active for Microsoft
Clustering
Please do NOT refer to this PDF in relation to MSCS
The technologies represented on your website, are not in relation to
Microsoft, and terminology you use is conflicting with standard terminology
within the Microsoft scope. I understand that you have some patented
technology to sell. Please do not use newsgroups to advertise, as this is
considered spam.
Please see Microsofts own definition on Active/Active :
http://technet2.microsoft.com/WindowsServer/en/library/8846a72b-0882-4a24-8eee-a768e52925281033.mspx?mfr=true
(scroll down to the "Q. What is active/active verses active/passive?")
Rgds,
Edwin.

Thursday, March 8, 2012

Actions not appearing in Cube browser

Hello,

I'm reading AS 2005 step by step and have set up two url actions but none of them appear in the context menu when i click on the rows.

I've also tried setting up an URL action which points to http://google.com and I Would presume it would appear when i right clicked on a cell in the cube but nothing appears.

side note: I created a drillthrough action and that works.

please help

Hi,

try to have a look here:

http://www.databasejournal.com/features/mssql/article.php/10894_3647056_1

Francesco

|||Hi,
read it already. didn't help me with anything.