Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Services / Analysis (Data Mining) / June 2008

Tip: Looking for answers? Try searching our database.

Executing a simple SELECT on different DB's

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
K Viltersten - 13 Jun 2008 23:55 GMT
I have two registered servers, Serv1 and Serv2.
When i right click any of them and choose
Connect->New Query and then execute:

 SELECT * FROM donkey

i get the results for both of them. The only
thing is that i get the queries executed on
different tabs. How can i alternate the
following so i get results from the same
table but on diferent servers?

 -- For server 1.
 SELECT * FROM donkey

 -- For server 2.
 SELECT * FROM donkey

I've tried different approaches and syntaxes
suggested by different sources but somehow, i
managed to be more confused that what they
clarified.   :)

Suggestions?

Signature

Konrad Viltersten

Eric Isaacs - 14 Jun 2008 01:35 GMT
Look into creating a linked server from one server to the other
server:
http://msdn.microsoft.com/en-us/library/aa213778(SQL.80).aspx

You can then refer to the other server from the server where the link
is defined.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.