SQL Server Management Studio 2008 Runas user on different domain over VPN

后端 未结 1 1815
北荒
北荒 2020-12-04 15:55

I am currently trying to run SQL Server Management Studio 2008 as a user who is on a different domain. I noticed in other threads that running the following command from a

相关标签:
1条回答
  • 2020-12-04 16:25

    Try this:

    NET USE \\DBSERVER /USER:DOMAIN\USERNAME
    

    You will be prompted for your password. This establishes a NetBIOS session with the database server. You should be able to see the shared folders and shared printers on the database server once you have done that.

    If that works you should be able to connect using SSMS as yourself. You may have to specify "named pipes" as the network protocol to usem, if it doesn't work with TCP (but I think it will).

    • Menu->File->Connect Object Explorer...
    • Options->Connection Properties->Network protocol
    • Specify "Named pipes"

    Named Pipes inherits your existing NetBIOS session, so provided you can list the shares you are probably good to go.

    Update: It looks like in some configurations this does not work with TCP connections, (possibly due to some security update). In these cases you should enable Named Pipes, and set named pipes in your connection string.

    0 讨论(0)
提交回复
热议问题