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 : 08:25:10
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

mikgri
Starting Member

39 Posts

Posted - 2010-09-21 : 09:38:24
syntax should be like this:
select * from [servername].[databas name].[tableowener].[tablename]
Go to Top of Page

mikgri
Starting Member

39 Posts

Posted - 2010-09-21 : 10:08:54
in your example:
select * from [tech].dgty.dbo.x
Go to Top of Page
   

- Advertisement -