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
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Select from different SQLServer instances

Author  Topic 

koushikchandra
Starting Member

24 Posts

Posted - 2011-03-23 : 08:04:03
Hi,

I have <tableA> in a database instance A1 and I want ot select it from a different database instance which is A2.A2 is altogether in a different box. Now I want to select from <tableA> data from instance A2. Will the SQL work properly or throw any error if the boxes are connected via VMWARE :

select * from A1.dbo.<tableA>

Regards
Koushik

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-03-23 : 13:04:09
You can use a linked server or OPENQUERY to run queries on a remote instance.

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 -