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 / DB Engine / SQL Server / July 2008

Tip: Looking for answers? Try searching our database.

accessing database on second sql server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ted185 - 31 Jul 2008 18:49 GMT
Is there a way to set up a sql server so that a querry run against database 1
on SQL server1 can pull data from databse 2 on sql server 2 as if database 2
existed on sql server 1?

I though I had seen a feature to link a sql server to see the databases
stored on another sql server but I can not find the info again

Thank You

ted
Aaron Bertrand [SQL Server MVP] - 31 Jul 2008 18:51 GMT
Yes, have a look at "linked servers" in Books Online.  With a linked server,
you can say

SELECT col_list FROM linked_server_name.database_name.dbo.table_name;

On 7/31/08 1:49 PM, in article
3635C072-C8A4-4A99-8A42-83FA7B5BE40B@microsoft.com, "ted185"

> Is there a way to set up a sql server so that a querry run against database 1
> on SQL server1 can pull data from databse 2 on sql server 2 as if database 2
[quoted text clipped - 6 lines]
>
> ted
Jeffrey Williams - 31 Jul 2008 18:53 GMT
> Is there a way to set up a sql server so that a querry run against database 1
> on SQL server1 can pull data from databse 2 on sql server 2 as if database 2
[quoted text clipped - 6 lines]
>
> ted

Yes, it is called linked servers.  You can find more information in BOL.
 
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.