Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Using the link server
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

19 Posts

Posted - 10/02/2006 :  21:42:06  Show Profile  Reply with Quote
Hi All,
I want to get the database from my remote server for tablea using the link server by executing the following sql statement on my local server:
select * from link-server.mydatabase.dbo.tablea

The errror message return back is:
Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near '-'.

What is the problem? Can I select the data from my remote server using the link server?

In (Som, Ni, Yak)

17689 Posts

Posted - 10/02/2006 :  23:36:56  Show Profile  Reply with Quote
select * from [link-server].mydatabase.dbo.tablea


Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000