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.
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 that i had written query lik this from current db serverselect * from [tech].dbo.dgty.xdgty is data base.I am getting following errorlogin failed for user 'xyz'.Please suggest me a solutionOne can never consent to creep,when one feels an impulse to soarRAMMOHAN |
|
mikgri
Starting Member
39 Posts |
Posted - 2010-09-21 : 09:38:24
|
syntax should be like this:select * from [servername].[databas name].[tableowener].[tablename] |
|
|
mikgri
Starting Member
39 Posts |
Posted - 2010-09-21 : 10:08:54
|
in your example: select * from [tech].dgty.dbo.x |
|
|
|
|
|