0

When I try the following query from Server3

Select * 
from [server1].[database1].[dbo].[tableX]

I recieve an an error of

Invalid Object Name

But when I execute the same query from Server2 the query works. Both are MSSQL 2000

UPDATE: When i tried to query a different table on server1 from server3

Select * 
from [server1].[database1].[dbo].[tableY]

from Server3 it works. Its just tableX wont work

4
  • 4
    Is server1 configured as a linked server on server2? Commented Oct 4, 2017 at 13:00
  • 3
    You need to research Linked Servers. Also, you need to seriously consider upgrading your environment. The extended lifecycle support for SQL Server 2000 ended 4.5 years ago. Commented Oct 4, 2017 at 13:03
  • is the linked server in both Server2 and Server3 refer to the same server ? How about user rights ? does the user in Server3 has access to the table in Server1 ? Commented Oct 4, 2017 at 13:15
  • Guys ive check the right and permission and its all good. Same with the linked Servers. But ive got an update. Please do check it Commented Oct 4, 2017 at 13:23

1 Answer 1

1

First check that tableX exists on the destination server then check that a linked server is present

Run:

SELECT *
FROM sys.servers;

On Server2 and Server3 and see if the results are the same. This will show name of the host server along with any other linked servers that may exist. The Microsoft Doc is HERE.

If there isn't a linked server set up on Server3 then create one, The Microsoft docs are HERE, but if you Google how to then there are plenty of guides out there.

And think about upgrading from SQL SERVER 2000 is was desupported April 2013

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.