SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Script Library
 Reading databases across servers in MSSQL 2005
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - 11/18/2010 :  15:21:20  Show Profile  Reply with Quote
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?

Almighty SQL Goddess

38114 Posts

Posted - 11/18/2010 :  15:24:20  Show Profile  Visit tkizer's Homepage  Reply with Quote
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

Subscribe to my blog
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000