查SQL SERVER sp_helpuser, 某用户的loginName 为空
2010-01-29 02:43
597 查看
以某用户名登录某数据库,无法登录;
在该数据库下用sp_helpuser 'uName' 察看发现loginName 为null
用sp_change_users_login 'Auto_fix', 'uName'
或sp_change_users_login 'Update_One', 'uName', 'loginName'
修改后可以登录
在该数据库下用sp_helpuser 'uName' 察看发现loginName 为null
用sp_change_users_login 'Auto_fix', 'uName'
或sp_change_users_login 'Update_One', 'uName', 'loginName'
修改后可以登录
相关文章推荐
- 解决员工更换工号后通过SPContext.Current.Web.CurrentUser.LoginName查找当前登录用户还是原来工号的问题
- oracle 11g里边有scott用户,且脚本scott.sql无错 SQL> conn scott 输入口令: ERROR: ORA-01017: invalid username/passwor
- 在创建从 ASP.NET 到 SQL Server 的受信任数据连接时出现错误消息:“Login failed for user:'AccountName'”(用户 'AccountName' 登录失败)
- sql server login与user的区别(摘)
- 关于sqlserver schema/user/login/role
- Problem: Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection.
- Trouble shooting:login failed for user 'sa' ,the user is not associated with a trusted SQL Server
- SQL : Microsoft SQL Server-Login failed for user ‘username’解决办法
- Generating user instances in Sql Server is disabled. Use sp_configure 'user instances enabled' to generate user instances
- Login failed for user ''.Reason:Not associated with a trusted SQL Server connection.
- SQLServer User and Login Tips
- SQL Server Database Login and User
- Create Login/Role/User/Permission in SQL Server
- 操作系统验证连接SQL Server Express发布服务报“Server Object instance on machine server is created with errors ,Bad login User”
- Login failed for user 'Tester'. Reason: Not associated with a trusted SQL Server connection.
- SQL Server ->> 关于SQL Server Agent Job执行步骤时的用户上下文(User Context)问题
- Login failed for user ''.Reason:Not associated with a trusted SQL Server connection.
- SiteServer CMS UserCenter/login.aspx页面用户名处sql注射
- Understanding the error message: “Login failed for user ''. The user is not associated with a trusted SQL Server connect
- SQL SERVER "Cannot Open User Default Database, Login Failed"故障解决