简体   繁体   English

无法连接到SQL Server数据库

[英]Unable to connect to SQL Server database

I'm trying to use the ASP.NET Web Site Administration Tool. 我正在尝试使用ASP.NET网站管理工具。 When I click on the Security, I kept getting this message. 当单击安全性时,我一直收到此消息。

There is a problem with your selected data store. 您选择的数据存储有问题。 This can be caused by an invalid server name or credentials, or by insufficient permission. 这可能是由于无效的服务器名称或凭据或权限不足引起的。 It can also be caused by the role manager feature not being enabled. 也可能是由于未启用角色管理器功能引起的。 Click the button below to be redirected to a page where you can choose a new data store. 单击下面的按钮将重定向到页面,您可以在其中选择新的数据存储。

The following message may help in diagnosing the problem: 以下消息可能有助于诊断问题:

Unable to connect to SQL Server database. 无法连接到SQL Server数据库。

First of, which SQL Server does this administration tool trying to connect too? 首先,此管理工具也尝试连接哪个SQL Server? How do I change the "Current User Name" to other user name? 如何将“当前用户名”更改为其他用户名? It's automatically used my Windows authentication logged on user name. 它自动使用我的Windows身份验证登录的用户名。 If I can change this and the password, it might just work. 如果可以更改此密码和密码,则可能可以正常使用。

Your web.config has a connection string. 您的web.config具有连接字符串。 See this question for the full details on how to change that: ASP.NET Website Administration Tool: Unable to connect to SQL Server database 有关如何更改此内容的完整详细信息,请参见此问题: ASP.NET网站管理工具:无法连接到SQL Server数据库

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM