Connection Problem

  • I have not been administering for awhile so I am having some memory lapses.

    I am trying to connect to linked server

    exec 'server1\server1'.pubs.dbo.spname

    Getting Incorrect syntax near 'server1\server1'

    Can someone tell me what I am doing wrong?

     

    Cheryl

  • This was removed by the editor as SPAM

  •  

    u will try

    exec server1.pubs.dbo.spname

  • The problem ended up being single quotes vs double quotes.

    I put in the double quotes "OAKDB01\OAKDBO1'. and it worked.

    On the job maintenance plan I used [OAKDB01\OAKDB01].

     

    Cheryl

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply