June 26, 2008 at 4:24 pm
I need to retrieve info from tables in msdb and load data into a database in a central server. MSDB are from multiple servers (SQL2000 & SQL2005). I need to automate this process. Using linked server is not an option in my case. How can I do it?
June 26, 2008 at 4:33 pm
you could use OPENQUERY or OPENROWSET
---------------------------------------
elsasoft.org
June 26, 2008 at 4:36 pm
But openquery needs linkedserver. This is not what I want.
June 26, 2008 at 5:03 pm
I've pulled information from servers that are not linked using a DTS package. But all of those servers are 2000. I don't know if SSIS packages can support 2000 and 2005 databases.
June 26, 2008 at 5:30 pm
yes DTS or SSIS is a good approach and secure.
SSIS supports 2000 Databases.
Maninder
www.dbanation.com
June 26, 2008 at 7:12 pm
Check this series of articles out, he shows how to dynamically connect to N number of servers, you simple populate a servername table to be used by an ADO connection and it also details central error logging. Following this will give you exactly what you need, he even kindly supplies the package so you can use\alter it for your own needs.
http://www.sqlservercentral.com/articles/Integration+Services/61621/
Andrew
June 26, 2008 at 8:16 pm
Vivien Xing (6/26/2008)
But openquery needs linkedserver. This is not what I want.
OPENROWSET does not require a linked server. requires just the connection string to the remote.
---------------------------------------
elsasoft.org
June 26, 2008 at 8:26 pm
jezemine (6/26/2008)
Vivien Xing (6/26/2008)
But openquery needs linkedserver. This is not what I want.OPENROWSET does not require a linked server. requires just the connection string to the remote.
This may help. Can I use windows authentication instead of userid/password? I have a table contains many server entries. I need to loop each server and get the data from each msdb to a central table.
June 26, 2008 at 10:02 pm
andrewkane17 (6/26/2008)
Check this series of articles out, he shows how to dynamically connect to N number of servers, you simple populate a servername table to be used by an ADO connection and it also details central error logging. Following this will give you exactly what you need, he even kindly supplies the package so you can use\alter it for your own needs.http://www.sqlservercentral.com/articles/Integration+Services/61621/
Andrew
This is a good link. However, my central server is SQL2000. I can not use SSIS in this case.
June 26, 2008 at 10:44 pm
[font="Verdana"]Go for linked server, create linked server and make use of this linked server to issue select statement..[/font]
Regards..Vidhya Sagar
SQL-Articles
July 2, 2008 at 8:32 pm
Finally use OSQL -SserverN -E -iMyinput.sql to loop through all my servers and append the output to the same output file, then load the file to a table.
Viewing 11 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic. Login to reply