我在尝试登录asp.net应用程序时遇到以下错误。错误:40 - 无法打开与SQL Server的连接
A network-related or instance-specific error occurred while establishing a connection to 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. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
在我web.config
文件,连接字符串就像
<add name="DefaultConnection"
connectionString="Server=1.1.1.1; Database=XYZ; Uid=user; Pwd=pswd;"
providerName="System.Data.SqlClient" />
Web和数据库服务器是分开的。同一个Web服务器上的其他网站指向同一个数据库服务器上的不同数据库,工作正常。
当我双击用户名在SQL Server 2008 R2(安全 - >用户 - >用户),我收到以下错误:
我已经检查SQL Server服务,他们正在运行精细。只是想知道在SQL Server中是否有与这个用户有关的事情。
看上去就像是*非常*不对的用户记录... – 2014-10-03 11:55:03
创建一个新用户来测试。如果它有效,那么你知道问题在于那个用户。 – CathalMF 2014-10-03 11:55:56