【发布时间】:2014-05-07 14:34:17
【问题描述】:
我花了几个小时没有成功。任何帮助:
我创建 LocalDB 实例
sqllocaldb create test
我启动那个实例
sqllocaldb start test
我与拥有原始实例的同一用户帐户共享该实例
sqllocaldb share "domain\user" test testShared
两个实例都处于“运行”状态。
我启动 MS SQL 管理工作室并尝试连接到实例。结果:
我可以使用命名管道连接到这两个实例 - 好的。
我可以连接到 (localdb)\test - 好的。
我无法连接到 (localdb)\.\testShared - 不行。
错误信息:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)
有什么想法吗?我在 4 台不同的计算机上尝试过。它在其中两个上正常工作。 3台电脑连接到域(所以它可能与域环境无关)。
在 SQL 配置管理器中 - 启用所有协议。
我需要实现的——根据this与IIS APPPOOL\ASP.NET v4.0账号共享LocalDB实例。
【问题讨论】: