且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用本地计算机连接到VM中的SQL Server

更新时间:2022-12-25 12:06:19

在您的VM上创建一个空文本文件,并将其扩展名为.udl

现在双击它您可以通过combobox轻松设置属性。

调整属性,然后单击测试连接,直到起作用为止。

Create an empty text file on your VM and give it extension .udl
Doubleclick on it now you can set the properties easy from combobox
Adjust the properties and click on "test connection" until it works

现在在记事本中打开文件,然后

Now open the file in notepad and there you see a complete connection string.

请注意,对于SQL Server身份验证,您需要在SQL Server配置管理器中配置协议

Note that for SQL Server authentication you need to configure the protocol in SQL Server Configuration Manager