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
 Other SQL Server 2008 Topics
 Reference table from a different SQL server

Author  Topic 

kjk_kjp
Starting Member

18 Posts

Posted - 2009-01-09 : 16:48:12
I have SQL SERVER 2008 running on 2 different machines.

I'm trying to create a view on server A that needs to query against a table on server B.

Server A
IP: 172.16.0.70
Database Name: ODSlive

Server B
IP: 192.168.1.10
Database Name: NX3liveods
Table Name: dbo.Student_Term

What do I need to do to reference Server B in my View on Server A

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2009-01-09 : 18:00:09
Create Linked Server and use Four part naming convention like
servername.dbname.schema.tablename.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-10 : 02:58:44
or use OPENROWSET if its for an adhoc access

http://msdn.microsoft.com/en-us/library/ms190312.aspx
Go to Top of Page
   

- Advertisement -