views:

927

answers:

2

How do I connect to a named instance of a linked SQL server.

If its not linked, I would do the following:

ServerName.DatabaseName.dbo.TableName

If it is linked, I would assume the following:

ServerName\InstanceName.DatabaseName.dbo.TableName

but SQL doesn't like the "\"

What is the correct syntax

+5  A: 

Check this

You can surround server name with brackets

Jhonny D. Cano -Leftware-
A: 

Hi man, the correct syntax is [ServerName\InstanceName].DatabaseName.dbo.TableName.

Martin Kafka