如何使用 (local)\INSTANCE_NAME 连接到 SQL Server?

发布于 2024-08-27 16:12:20 字数 432 浏览 1 评论 0原文

我有一位开发人员在连接到 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧时光的容颜 2024-09-03 16:12:20

您可以使用 .\HIS_SERVER_INSTANCE 获得与使用 (local) 相同的效果。

You can use .\HIS_SERVER_INSTANCE to get the same effect as using (local).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文