SQL问题记录——Unable to connect SqlServer "Oledb ...
2012-02-03 10:23
537 查看
我的情况是,客户端软件连接数据库提示Unable to open connection to "OleDb, provider V2.0.0.0 in framework .NET V2". Provider=SQLOLEDB; Data Source = LENOVO\ME;Initial Catalog=MINGBANK;User ID=mingwang;Password = diyu。
远程连接到服务器,使用SqlManagementStudioExpress管理工具数据库服务器,一开始使用Sql用户名密码登录(mingwang,diyu),提示错误信息“用户名mingwang登录失败,错误18456”。
切换为本地Windows验证登录后查看mingwang用户名的属性,提示错误信息:“属性 islocked 不可用于登录,或者所用权限不足不能够进行索引检索”。
定位为sql 用户密码过期策略导致用户被禁用,使用sql语句 EXEC sp_password 'sa','Uiop_098Mn','sa'
ALTER LOGIN sa ENABLE 之后问题依旧。
最终,尝试以下较完整语句成功操作:“alter login mingwang with password = 'diyu' unlock, check_policy = off, check_expiration = off”
远程连接到服务器,使用SqlManagementStudioExpress管理工具数据库服务器,一开始使用Sql用户名密码登录(mingwang,diyu),提示错误信息“用户名mingwang登录失败,错误18456”。
切换为本地Windows验证登录后查看mingwang用户名的属性,提示错误信息:“属性 islocked 不可用于登录,或者所用权限不足不能够进行索引检索”。
定位为sql 用户密码过期策略导致用户被禁用,使用sql语句 EXEC sp_password 'sa','Uiop_098Mn','sa'
ALTER LOGIN sa ENABLE 之后问题依旧。
最终,尝试以下较完整语句成功操作:“alter login mingwang with password = 'diyu' unlock, check_policy = off, check_expiration = off”
相关文章推荐
- VS环境下 Ibatis .Net 连接sqlserver 2005 碰到的问题 Unable to open connection to "Microsoft SQL Server, provider V2.0.0.0 in framework .NET V2.0".
- Unable to open connection to "Microsoft SQL Server, provider V1.0.5000.0 in framework
- SQLyog连接问题:SQL Error (2003): Can't connect to MySQL server on '46.x.x.x' (10061)
- 远程mysql_java.sql.SQLException: null, message from server: "Host 'xxx' is not allowed to connect
- Unable to connect to server '(local)'; SQLServerAgent cannot start
- github安装问题解决"Unable to retrieve your user info from the server"
- C028: "Unable to Connect to the Siebel Gateway Name Server
- LoadRunner录制脚本时出现:Unable to connect to remote server),有事件没有脚本的问题
- Error -27796: Failed to connect to server问题解决记录
- 远程mysql_java.sql.SQLException: null, message from server: "Host 'xxx' is not allowed to connect
- Unable to load SQL Server OLEDB provide resource DLL错误
- java.sql.SQLException: null, message from server: "Host 'xxx' is not allowed to connect
- Unable to connect SQL Server
- java.sql.SQLException: null, message from server: "Host 'xxx' is not allowed to connect to this MySQ
- java.sql.SQLException: null, message from server: "Host '10.11.3.67' is not allowed to connect to t
- java.sql.SQLException: null, message from server: "Host 'xxx' is not allowed to connect
- "Unable to execute dex: Multiple dex files define Lcom..."问题解决记录
- MySql使用全记录5 -----解决Windows下用命令导入sql文件时"Failed to open file"的问题
- Mysql 远程连接的问题 2003 - Can't connect to MySQL server on '39.106.187.107' (60 "Operation timed out")
- vnc Unable to licence server: "XML error 0:0 Error: First Tag not found"问题的解决