今天上网站发现提示服务器连接超时,然后我去服务器看了一下,没问题啊.我在本地写了一个测试程序,也就是简单的增删改查,确实可以连上服务器上的数据库.我重启了一下服务器,发现还是不行.提示如下:Server Error in '/' Application.用户 'sa' 登录失败。Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: 用户 'sa' 登录失败。Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.请问是什么原因?怎么解决
2 回答

红颜莎娜
TA贡献1842条经验 获得超13个赞
仔细查看数据库连接字符串,看看标点符号或者密码是否错误! 也可以用你配置sa的密码,用SQL Server Management Studio看是否能够登录。
没有找到匹配的内容?试试慕课网站内搜索吧
- 2 回答
- 0 关注
- 762 浏览
添加回答
举报
0/150
提交
取消