Q
Problem solve Get help with specific problems with your technologies, process and projects.

Getting data from two servers using the same query

Greg Low explains how to use the same query to pick up data from two linked servers.

I want to use the same query to pick up the data from two linked servers. How can I go about making this work?
You simply refer to the data in the linked server using fully-qualified names ie:
SELECT Columns FROM ServerName.DatabaseName.dbo.TableName

Dig Deeper on SQL-Transact SQL (T-SQL)

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close