Why can't I connect to a SQL Server 2012 LocalDB shared instance?

后端 未结 5 1662
隐瞒了意图╮
隐瞒了意图╮ 2021-01-31 18:05

I\'m trying to set up a SQL Server 2012 LocalDB (RTM, x64) shared instance on my Windows 7 x64 machine and I can\'t seem to connect to the shared instance. I\'m using an Admini

5条回答
  •  萌比男神i
    2021-01-31 18:16

    Install the full .NET framework 4.5.2 or later, then reboot, you should then be able to connect using:

    sqlcmd -S (localdb)\.\MySharedInstance
    

    I have found that named pipes generate a new hash when the machine is rebooted, the named shared instance will persist after reboots.

    Important to note it won't work until after a reboot.

提交回复
热议问题