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 2005 Forums
 SQL Server Administration (2005)
 Another Linked Server Query.....

Author  Topic 

bendertez
Yak Posting Veteran

94 Posts

Posted - 2010-01-29 : 09:46:32
Hello

I'm tring to connect to a database on another instance of SQL server through a link server connection.

I've set up the connection without issue and can see and open all the tables etc.

However, when I try query the data using an openquery statement i'm getting an error indicating that it doesn't like the name.

The name is sql-server-v01, it looks like the ' - ' in the name is causing an issue querying the data. I've tried it with the IP address and the same thing happens as it looks like it only wants to see a character string without punctuation.

Has anybody else come across this or knows how to overcome this problem.

I can't rename the SQL server instance.

Thanks

Dave

mfemenel
Professor Frink

1421 Posts

Posted - 2010-01-29 : 10:26:45
try putting the name in brackets [sql-server-v01]

Mike
"oh, that monkey is going to pay"
Go to Top of Page

bendertez
Yak Posting Veteran

94 Posts

Posted - 2010-01-29 : 10:40:35
Of course, thanks Mike
Go to Top of Page
   

- Advertisement -