[英]How to connect to SQL Server from visual studio Mac?
I tried to connect to a remote SQL Server using visual studio Mac using this我尝试使用 Visual Studio Mac 连接到远程 SQL 服务器
"Server=PcName;Database=DatabaseName;user=eg;password=password;MultipleActiveResultSets=true"
but cannot connect this and this error appears from terminal in Mac:但无法连接,并且此错误从 Mac 的终端出现:
A network-related or instance-specific error occurred while establishing a connection to SQL Server.
与 SQL 服务器建立连接时发生与网络相关或特定于实例的错误。 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.
验证实例名称是否正确,并且 SQL 服务器配置为允许远程连接。 (provider: TCP Provider, error: 35 - An internal exception was caught)
(提供者:TCP 提供者,错误:35 - 捕获到内部异常)
Is this way correct?这种方式正确吗? If not which is the right way?
如果不是,那是正确的方法?
Use Azure Data Studio, this is ssms for non windows machines.使用 Azure Data Studio,这是非 windows 机器的 ssms。
Your connection is correct,Try restarting your sql server and agent...您的连接正确,请尝试重新启动您的 sql 服务器和代理...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.