I am getting following error for SQL server 2005/2008

5 pts.
Tags:
SQL Server 2005
SQL Server 2008
Hi,
I have SQL server 2005 and SQL server 2008, both are installed on the same machine. Now I want to pass the server name like mymachine\mssql2008 to one of my own stored procedure.
This procedure tries to get the fully qualified table name of a particular table of some database which is on SQL server 2008. I am getting following error
"Incorrect syntax near \."
Does any body know how to pass my server name to the stored procedure?

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • carlosdl
    Do you need  help on how to "pass" the name, or on how to get it ? Also, you should post your current code.
    77,040 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: