使用本地计算机连接到VM中的SQL Server [英] Connect to SQL Server in VM using local machine

查看:125
本文介绍了使用本地计算机连接到VM中的SQL Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用我的本地sql服务器管理工​​作室在VM中连接SQl服务器数据库。

I would like to connect SQl server DB in VM using my local sql server management studio.

我需要什么服务器名称?
我可以在本地使用VM的服务器Windows身份验证吗?

What should I need for server name ? Can I use my server Windows authentication for VM in my local ?

推荐答案

在您的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

这篇关于使用本地计算机连接到VM中的SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆