SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

jpham
Starting Member

USA
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?
Thank
JP

khtan
In (Som, Ni, Yak)

Singapore
17601 Posts

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



KH

Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.03 seconds. Powered By: Snitz Forums 2000