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 2000 Forums
 SQL Server Development (2000)
 error while reading data from another server

Author  Topic 

rammohan
Posting Yak Master

212 Posts

Posted - 2010-09-21 : 05:33:27
Hi,
i need read data from a table x which is in another db server called tech for th
at i had written query lik this from current db server

select * from [tech].dbo.dgty.x

dgty is data base.

I am getting following error

login failed for user 'xyz'.

Please suggest me a solution

One can never consent to creep,when one feels an impulse to soar
RAMMOHAN

pk_bohra
Master Smack Fu Yak Hacker

1182 Posts

Posted - 2010-09-21 : 06:38:50
one ways is to create a linked server ( Link the other server with this server)

Have a look at:
http://msdn.microsoft.com/en-us/library/aa213778(SQL.80).aspx

http://msdn.microsoft.com/en-us/library/aa215786(SQL.80).aspx


Secondly,
select * from [tech].dbo.dgty.x
should be
select * from [tech].dgty.dbo.x


Regards,
Bohra
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2010-09-21 : 12:58:15
Duplicate of http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=150425
Go to Top of Page
   

- Advertisement -