Groups | Blog | Home
all groups > asp.net > november 2004 >

asp.net : Query across multiple databases/SQL Servers



Quentin Ran
11/30/2004 5:04:45 PM
Yes. Specify the server and database:

select Select_Column_List
from Server_Name.DB_Name.Object_owner.Table_or_view_name

If from another server, you need to set up a linked server. See Linked
Server in Books Online.


[quoted text, click to view]

no.one NO[at]SPAM no.where.com
11/30/2004 10:37:11 PM
Is it possible to run a single query that pulls data from multiple
tables in multiple databases, perhaps also from multiple SQL Servers?

Any input would be appreciated.

Thanks!

AddThis Social Bookmark Button