如何使用 (local)\INSTANCE_NAME 连接到 SQL Server?
我有一位开发人员在连接到 SQL Server 实例时遇到问题,方法是在 Visual Studio-> 服务器资源管理器中输入服务器名称 (本地)\HIS_SERVER_INSTANCE。如果他将 (local) 替换为他的机器名称,则连接正常。我以前也遇到过类似的问题,但它们似乎可以自行解决。有谁知道这个问题的解决办法吗?
编辑:
我们无法使用计算机名称,因为我们的应用程序包含带有 (local) 的连接字符串。
另外,我注意到他的 SQL Server 安装有些奇怪。其他人似乎都看到 SQL Server 服务管理器显示在右下角。我在他的启动文件夹中查找了这个应用程序,但什么也没有。然后我在系统上查找该应用程序(C:\Program Files\Microsoft SQL Server\80\Tools\Binn\sqlmangr.exe),但它不存在。也许他的系统有更大的问题?
I have a developer that is having trouble connecting to a SQL Server instance by entering the server name (local)\HIS_SERVER_INSTANCE into Visual Studio->Server Explorer. If he replaces (local) with his machine name, it connects fine. I have had similar issues before but they seemed to fix themselves. Does anyone know a fix for this?
EDIT:
We cannot use the machine name because our app contains connection strings with (local) in them.
Also, I've noticed something weird about his SQL Server install. Everyone else seems to get the SQL Server Service Manager showing in the lower right corner. I looked for this app in his startup folder and nothing was there. I then looked for the app on the system (C:\Program Files\Microsoft SQL Server\80\Tools\Binn\sqlmangr.exe) and it doesn't exist. Maybe his system has bigger issues??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
.\HIS_SERVER_INSTANCE
获得与使用 (local) 相同的效果。You can use
.\HIS_SERVER_INSTANCE
to get the same effect as using (local).