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)
 Namespace in SQL Server

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-01-05 : 08:11:14
Andy Lau writes "Hi there,

Anyone can help me.
I can't remember the SQL syntax on how to query data from another server.

For example,

I would like to query data from a server call SQLSRV and the table is REEL under the database name call MV. Is the command below correctly written?

select * from SQLSRV.MV.dbo.REEL

If wrong pls correct. But this is correct, I wonder why I can't, it prompts me error syntax error?"

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2005-01-05 : 10:14:14
you must make sure that you have set up that server as a linked server, otherwise SQL cannot connect to it.

- Jeff
Go to Top of Page
   

- Advertisement -