Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Script Library
 Reading databases across servers in MSSQL 2005

Author  Topic 

dcorbyn
Starting Member

1 Post

Posted - 2010-11-18 : 15:21:20
Say I have two servers(environments) and two databases on the each servers respectively:
Server1 - Development_DB
Server2 - Testing_DB

I'm i able to read the tables of both databases in the same script?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-11-18 : 15:24:20
You can do that via linked server or openquery. Do some searching on those for examples/how to setup.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -