数据库登录问题 [英] database login problem

查看:78
本文介绍了数据库登录问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

System.Data.SqlClient.SqlException: Cannot open database "Pubs1" requested by the login. The login failed.
Login failed for user 'sa'.

推荐答案

没有用户sa或者您提供了错误的密码。
Either there is no user "sa" or you gave the wrong password.


请检查连接字符串中的用户名和密码,服务器和数据库。



如果一切正确,请尝试从打开连接的位置ping服务器。



如果ping响应。然后尝试telnet到SQL服务器端口。



这将帮助您详细分析问题
Please check the username and Password, Server and Database in the connection string.

IF all is correct, please try to ping the server from the location where the connection is being openned.

if the ping response. Then try to telnet to the SQL sever port.

This will help you to analyze the problem in detail


这篇关于数据库登录问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆