Problem solve Get help with specific problems with your technologies, process and projects.

Syntax errors when using linked servers

Syntax errors may occur when trying to use linked servers. SQL Server development expert Greg Low explains the proper format for server name and instance.

When I try to use a linked server as ServerNameSecondInstances an error like this comes out:
Server: Msg 170, Level 15, State 1, Line 1 Line 1: Incorrect syntax near."
Does it mean we cannot use SecondInstances for linked servers?
I'm not sure if that's an intentional syntax error, but server names should be of the format 'servernameinstancename.' Otherwise, I'll need to see the full syntax that you're trying to execute.
This was last published in August 2006

Dig Deeper on SQL Server Stored Procedures

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.