How to query against multiple linked servers?
问题 After linking some SQL Server 2008 Servers / instances, I would like to do a more generic query against these servers. I know that I must specify the destiny of the query like that: select * from [SRV\INSTANCE].dbname.dbo.foo But, I would run this query against more than one linked server. I know also that this select statement returns exactly the SRV\INSTANCE that I need: select ss.name from sys.servers ss where ss.server_id > 0 This one, returns all servers\instances from where I want query