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.
| Author |
Topic |
|
vbseeker
Starting Member
8 Posts |
Posted - 2004-06-25 : 06:14:55
|
Hi, i am using sp_addlinkedserver to connect with my another server. Let say my current server name is anand and other server name is anand-newnow sp_addlinkedserver worked okNow i want to fetch some record from the anand-new server. I am writing my query in I server (i.e. Anand) SELECT TOP 10 * FROM anand-new.NEWSITE.DBO.Xyz_NEW I am getting error Server: Msg 170, Level 15, State 1, Line 1Line 1: Incorrect syntax near '-'.Pls helpIts urgentCheers, Anand |
|
|
nr
SQLTeam MVY
12543 Posts |
|
|
B0g
Starting Member
19 Posts |
Posted - 2004-06-25 : 06:47:40
|
| Try this one:SELECT TOP 10 * FROM [anand-new].[NEWSITE].[DBO].[Xyz_NEW] |
 |
|
|
|
|
|