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
 Transact-SQL (2000)
 Linked servers (MS SQL Server 2000)

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-01-04 : 08:45:54
Nancy writes "Windows 2000 (SP4), SQL Server 2000 (SP3)

I am trying to compare data on SQL Server 2000 to a "linked server" on SQL Server 6.5. I thought my syntax was correct, however I keep getting the error "Invalid object name 'dbo.testdb65.testx'."

select * from testdb65.dbo.testx
where testfield not in
(select testfield
from testdb2000.dbo.testy)"

Stoad
Freaky Yak Linguist

1983 Posts

Posted - 2005-01-04 : 09:11:03
compare

'dbo.testdb65.testx' and 'testdb65.dbo.testx'
Go to Top of Page

TimS
Posting Yak Master

198 Posts

Posted - 2005-01-04 : 10:29:47
select * from linkservername.testdb65.dbo.testx
where testfield not in
(select testfield
from testdb2000.dbo.testy)"

Tim S
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2005-01-04 : 10:46:24
I don't think that's the code causing the problem

And you can lose the dbo part...

Did you create a login?



Brett

8-)
Go to Top of Page
   

- Advertisement -