March 25, 2013 at 11:06 am
Hi,
I have a database called databaseA with a table called, otherdbs with two columns
server databasename
server1 parts
server2 parts
I would like a query that queries databaseA and table called otherdbs, which then uses the server and databasename to issue another query on each of the databases.
Apologies for the lack of details, is this possible? any hints on where to start would be brilliant.
March 25, 2013 at 11:07 am
pjuster (3/25/2013)
Hi,I have a database called databaseA with a table called, otherdbs with two columns
server databasename
server1 parts
server2 parts
I would like a query that queries databaseA and table called otherdbs, which then uses the server and databasename to issue another query on each of the databases.
Apologies for the lack of details, is this possible? any hints on where to start would be brilliant.
Yes, using dynamic sql along with linked servers.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy