December 31, 2010 at 12:16 pm
I have linked a remote server successfully. Linked server name is "DATA2".
Now I need to issue a sql query against the remote server.
So I do this :
select * from DATA2.DB_name.TableName
Now I am getting the errors:
Msg 208, Level 16, State 1, Line 1
Invalid object name 'DATA2.DB_name.TableName'.
What am I doing wrong?
December 31, 2010 at 12:38 pm
You need the 4-part name. In your case it seems like the schema is missing.
Assuming it's dbo, the query would look like
select * from DATA2.DB_name.dbo.TableName
December 31, 2010 at 1:57 pm
Yes. That worked. Thanks a lot!
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply