[英]Connection from Visual Studio to SQL Server 2005
In Visual Studio 2010 I am trying to set up a connection with a SQL Server database with the add connection
wizard but the connection fails! 在Visual Studio 2010中,我试图使用
add connection
向导建立与SQL Server数据库的add connection
但是连接失败!
This is the error I get: 这是我得到的错误:
a network-related or instance-specific error occured while establishing a connection to SQL server.
建立与SQL Server的连接时发生与网络相关或特定于实例的错误。 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 Server配置为允许远程连接。 (provider:Named Pipes Provider, error:40 -Could not open a connection to SQL Server)
(提供者:命名管道提供程序,错误:40-无法打开与SQL Server的连接)
Extra info; 额外信息;
What is here the problem? 这是什么问题?
To work around this problem, use one of the following methods depending on the symptom that you are experiencing: 要变通解决此问题,请根据您遇到的症状使用以下方法之一:
Use a valid Windows login to connect to SQL Server. 使用有效的Windows登录名连接到SQL Server。 If you must continue to use a SQL Server login, you can change the security authentication mode in SQL Server to SQL Server and Windows.
如果必须继续使用SQL Server登录名,则可以将SQL Server中的安全身份验证模式更改为SQL Server和Windows。
To work around this problem, you must add the Windows account to SQL Server, and then grant the appropriate permissions to each database that the user requires access to. 要变通解决此问题,您必须将Windows帐户添加到SQL Server,然后为用户需要访问的每个数据库授予适当的权限。
Source: http://support.microsoft.com/kb/889615/en-us 来源: http : //support.microsoft.com/kb/889615/en-us
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.