Connecting to named instance through SQLCMD

  • Hi,

    I am trying to connect to a named instance instance3 using the below command from the same server.

    sqlcmd -s .\instance3

    But it gets connected to default instance. I am not able to connect to instance3 anyway.

    Please advice.

    I checked the below link

    http://msdn.microsoft.com/en-us/library/ms188247.aspx

    Ryan
    //All our dreams can come true, if we have the courage to pursue them//

  • Case matters. Use sqlcmd -S.\instance3 instead (uppercase s).

    -- Gianluca Sartori

  • Gianluca Sartori, thank you very much. It worked now.

    Ryan
    //All our dreams can come true, if we have the courage to pursue them//

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

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