dbTalk Databases Forums  

Tak Connection's catalog name dynamically.

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Tak Connection's catalog name dynamically. in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rajesh Patel
 
Posts: n/a

Default Tak Connection's catalog name dynamically. - 07-19-2005 , 10:43 AM






Hi,

I have created DTS package in the SQLServer 2000. Now, I would like to
execute this package for multiple databases under the same sqlserver.

How can I do that?

I am trying to change it's connection's catalog property via VB.Net.
But, It seems that it's not changing and everytime I am getting results
from the same database, which I configured in DTS package. I tried to
work with Global variables. But, does not help. It's the same.

I appretiate your help.


Thank you,
Rajesh


Reply With Quote
  #2  
Old   
Tibor Karaszi
 
Posts: n/a

Default Re: Tak Connection's catalog name dynamically. - 07-19-2005 , 10:51 AM






Did you use "dynamic properties" in your DTS package?

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/


"Rajesh Patel" <rdp647 (AT) hotmail (DOT) com> wrote

Quote:
Hi,

I have created DTS package in the SQLServer 2000. Now, I would like to
execute this package for multiple databases under the same sqlserver.

How can I do that?

I am trying to change it's connection's catalog property via VB.Net.
But, It seems that it's not changing and everytime I am getting results
from the same database, which I configured in DTS package. I tried to
work with Global variables. But, does not help. It's the same.

I appretiate your help.


Thank you,
Rajesh



Reply With Quote
  #3  
Old   
Rajesh Patel
 
Posts: n/a

Default Re: Tak Connection's catalog name dynamically. - 07-19-2005 , 11:05 AM



Yes, I am using it. Via Dynamic properties task, I set connection's
catalog and datasource properties to global variables.



Thanks

Rajesh

Tibor Karaszi wrote:
Quote:
Did you use "dynamic properties" in your DTS package?

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/


"Rajesh Patel" <rdp647 (AT) hotmail (DOT) com> wrote in message
news:1121787813.102221.226940 (AT) z14g2000cwz (DOT) googlegroups.com...
Hi,

I have created DTS package in the SQLServer 2000. Now, I would like to
execute this package for multiple databases under the same sqlserver.

How can I do that?

I am trying to change it's connection's catalog property via VB.Net.
But, It seems that it's not changing and everytime I am getting results
from the same database, which I configured in DTS package. I tried to
work with Global variables. But, does not help. It's the same.

I appretiate your help.


Thank you,
Rajesh



Reply With Quote
  #4  
Old   
Rajesh Patel
 
Posts: n/a

Default Re: Tak Connection's catalog name dynamically. - 07-19-2005 , 11:18 AM



I think, I got the solution. It was my fault. My query was referring
server and databasename in FROM clause. I removed that.

minor mistakes!!!

Thanks any way,

Rajesh


Reply With Quote
  #5  
Old   
Rajesh Patel
 
Posts: n/a

Default Re: Tak Connection's catalog name dynamically. - 07-19-2005 , 02:34 PM



Hi,

After I made above mentioned change, package is running well from
sqlserver. But, it is not achieving desired result when I run it from
vb.net. I set global variable's values from vb.net application. It's
not picking up database name from global variable and looks like its
using database name which I specified in package itself.

Do I need to set order of step executions on vb.net application? It
works well in sqlserver though. In sqlserver, it executes
'setglobalvars' task first. When I look step collection in vb.net,
'Setglobalvars' is last in step collection.

Thanks

Rajesh


Reply With Quote
  #6  
Old   
Darren Green
 
Posts: n/a

Default Re: Tak Connection's catalog name dynamically. - 07-20-2005 , 02:27 PM



In message <1121801685.233657.4960 (AT) g43g2000cwa (DOT) googlegroups.com>, Rajesh
Patel <rdp647 (AT) hotmail (DOT) com> writes
Quote:
Hi,

After I made above mentioned change, package is running well from
sqlserver. But, it is not achieving desired result when I run it from
vb.net. I set global variable's values from vb.net application. It's
not picking up database name from global variable and looks like its
using database name which I specified in package itself.

Do I need to set order of step executions on vb.net application? It
works well in sqlserver though. In sqlserver, it executes
'setglobalvars' task first. When I look step collection in vb.net,
'Setglobalvars' is last in step collection.

Thanks

Rajesh

The package should include a workflow constraint to ensure the tasks
execute in the correct order. The order in the collection is not
relevant if constrained properly through workflow.

A couple of other points-

A connection needs to be closed for any changes to take effect, so
either make the changes before any other tasks use it, or ensure the
last task to use it, before the change, has the Close connection on
completion property set.

Some tasks, in particular the DataPump and DDQ, catch people out as by
default the UI will include the DB in properties such as
SourceObjectName and DestinationObjectName.


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.