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
 SQL Server Development (2000)
 Linked server

Author  Topic 

keithc1
Yak Posting Veteran

88 Posts

Posted - 2004-06-29 : 17:27:18
I'm trying to select records into a linked server but the linked server is an instance name.

select column into DataBase.Table
from ServerName\ServerMame.DataBase.dbo.Table

and it is giving me a syntax error
Line 2: Incorrect syntax near '\'.

basicly, How do i query to a linked server with the servername\servername format using 4 part naming

Keithc MCSE MCSA

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-06-29 : 17:40:17
from [ServerName\ServerMame].DataBase.dbo.Table

Tara
Go to Top of Page

keithc1
Yak Posting Veteran

88 Posts

Posted - 2004-06-29 : 17:56:52
ya i forgot the brackets (Kicks himself) Thanks Tara :)

Keithc MCSE MCSA
Go to Top of Page
   

- Advertisement -