dbTalk Databases Forums  

DTS Question

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


Discuss DTS Question in the microsoft.public.sqlserver.dts forum.



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

Default DTS Question - 02-07-2006 , 06:11 PM






I have a server table all of my servers listed overt there, I would like to
retrive server name from that table connect to the server querry about the
database sizes
and put in to the historical table. How i can loop through each server to
get the information dynamically. Basically i want to change my connections
dynamically.
--
SQL serer DBA

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS Question - 02-08-2006 , 12:43 AM






Hello Srikanth,

Have a look at this

http://www.sqldts.com/default.aspx?298


This article shows you how to get a rowset into a variable which in your
case will be servers and how to loop over them. You can then change the
connection properties of the SQL Server connection using the results and
perform whatever action you want from there.

Allan

Quote:
I have a server table all of my servers listed overt there, I would
like to retrive server name from that table connect to the server
querry about the database sizes and put in to the historical table.
How i can loop through each server to get the information dynamically.
Basically i want to change my connections dynamically.




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.