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 2005 Forums
 Transact-SQL (2005)
 Access Data from two different Domains

Author  Topic 

vyelchri
Starting Member

12 Posts

Posted - 2009-01-02 : 07:28:38
How to access data in two different domains. Suppose 'Emp' table is in Server1, this is in ABC Domain(network) and 'Marks' table is in Server2, this Server2 is in XYZ Domain(another network). I will connect to only Server1 and i need to access 'Marks' table which is in server2.

Can any body explain the procedure ?

Thanks,
VB

raky
Aged Yak Warrior

767 Posts

Posted - 2009-01-02 : 07:34:09
As per my knowledge try this

Create Linked Server and then use the following syntax

select * from servername.databasename.schema.tablename to get data
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-02 : 09:01:08
or use OPENROWSET
http://technet.microsoft.com/en-us/library/ms190312.aspx
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2009-01-02 : 12:24:20
quote:
Originally posted by raky

As per my knowledge try this

Create Linked Server and then use the following syntax

select * from servername.databasename.schema.tablename to get data



You should be good with SQL Login for linked server if you are connecting across domain.
Go to Top of Page
   

- Advertisement -