简体   繁体   English

如何从 Visual Studio Mac 连接到 SQL 服务器?

[英]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.

相关问题 如何从Visual Studio for Mac连接到远程SQL Server? - How to connect to remote SQL Server from Visual Studio for Mac? 我无法通过Mac上的Visual Studio代码连接到SQL Server - I cannot connect to SQL Server through Visual Studio Code on Mac 在Mac上使用Visual Studio连接到SQL Server的不同方法 - Different ways to connect to SQL Server using Visual Studio on Mac 如何从Visual Studio 2012连接到SQL Server 2000数据库 - How to connect to SQL Server 2000 database from Visual Studio 2012 Webconfig ConnectionString从Visual Studio 2012连接SQL Server 2008 - Webconfig ConnectionString to connect SQL Server 2008 from Visual Studio 2012 无法从Visual Studio 2012连接到SQL Server Express 2014 - Cannot connect to SQL Server Express 2014 from Visual Studio 2012 无法从Visual Studio 2017连接到本地SQL Server 2014 - Cannot connect to Local SQL Server 2014 from Visual studio 2017 无法从Visual Studio连接到SQL Server 2016 - Can't connect to SQL Server 2016 from Visual studio 无法从Visual Studio连接到SQL Server 2014 - Cannot connect to SQL Server 2014 from Visual Studio 是否有任何机制可以从Visual Studio 2008连接到sql server 7? - Is there any mechanism to connect to sql server 7 from visual studio 2008?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM