zjcxc: 我完全按照你的方法设置。 也运行了 EXEC sp_password '12345','12345','sa'ALTER LOGIN sa ENABLE 可是,当我用Windows Authentication登陆 在Security_logins里 看到sa的密码还是一长串 在里面修改密码,出现连接sql2005时,出现 Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection 谢谢指点!!The MUST_CHANGE option is not supported by this version of Microsoft Windows. (.Net SqlClient Data Provider) 我的系统时win2000 sp4 sql enterprise edition. 另外,当我在c#中
上面的问题次序反了!! zjcxc: 我完全按照你的方法设置。 也运行了 EXEC sp_password '12345','12345','sa'ALTER LOGIN sa ENABLE 可是,当我用Windows Authentication登陆 在Security_logins里 看到sa的密码还是一长串 在里面修改密码,出现 The MUST_CHANGE option is not supported by this version of Microsoft Windows. (.Net SqlClient Data Provider) 我的系统时win2000 sp4 sql enterprise edition. 另外,当我在c#中连接sql2005时,出现 Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection 谢谢指点!!
如果你用windows身份验证登录1. sp_password '123456','123456','conect'Msg 15007, Level 16, State 1, Procedure sp_password, Line 29 'conect' 是无效登录名或您没有相应的权限。 说明没有创建connect这个登录, 自然无法修改密码 ---------------------------------------------------------------------2. sp_password '123456','123456','sa'Msg 15151, Level 16, State 1, Line 1 无法对 登录名 'sa' 执行 更改,因为它不存在,或者您没有所需的权限。 说明你指定了错误的旧密码 ---------------------------------------------------------------------基于上述原因, 你应该使用下面的语句修改sa的密码: sp_password null,'!sa123456','sa' -- 密码要够复杂, 旧密码指定为null, 表示强制修改密码
我在sql server 2005在自己的机器上 新建了一个数据库,名字gaoweb.
然后我打开Manage Studio, 在我的数据库的 实例Engineer 的 Edit Register里设置了userid 和 password,比如我设置了userid 为sa,password 为 1111,但是不论我怎么试都是显示:provider for ole db 错误,'80040e4d'
用户 sa 登陆失败我的 asp文件里连接SQL SERVER的话是这样的:
ConnStr = "Provider =Sqloledb; Data Source =localhost; User ID =sa; Password =1111; Initial Catalog =gaoweb;"
conn.open connStr就是这句话会抱错说,用户sa登陆失败。不知道Edit Register里该怎么设置还是其他地方不对?
如果是刚装的第一次用,可以考虑备份数据,谢载sqlserver,再重装,重装过程中一步步设置。
用户 sa 登陆失败
Manage Studio -- 菜单"文件"--"连接对象资源管理器", 身份验证中选择"Windows Authentication"2. 连接成功后, 右键你的实例, 选择"属性"3. 在"属性"窗口中, 转到"Security"(安全性)项, 在"服务器身份验证"中设置为"SQL Server和Windows身份验证模式", 确定, 根据提示, 你应该重新启动sql服务4. 重新启动sql服务后, 照用Windows身份验证连接, 然后执行下面的语句启用sa用户, 同时清除sa的密码(能成功登陆后再根据你的需要设置)EXEC sp_password null,null,'sa'ALTER LOGIN sa ENABLE
5. 语句执行完成后, 再用sa连接你的实例, 应该就没有问题了.
我完全按照你的方法设置。
也运行了
EXEC sp_password '12345','12345','sa'ALTER LOGIN sa ENABLE
可是,当我用Windows Authentication登陆
在Security_logins里
看到sa的密码还是一长串
在里面修改密码,出现连接sql2005时,出现
Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection
谢谢指点!!The MUST_CHANGE option is not supported by this version of Microsoft Windows. (.Net SqlClient Data Provider)
我的系统时win2000 sp4
sql enterprise edition.
另外,当我在c#中
zjcxc:
我完全按照你的方法设置。
也运行了
EXEC sp_password '12345','12345','sa'ALTER LOGIN sa ENABLE
可是,当我用Windows Authentication登陆
在Security_logins里
看到sa的密码还是一长串
在里面修改密码,出现
The MUST_CHANGE option is not supported by this version of Microsoft Windows. (.Net SqlClient Data Provider)
我的系统时win2000 sp4
sql enterprise edition.
另外,当我在c#中连接sql2005时,出现
Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection
谢谢指点!!
sp_password '123456','123456','conect'Msg 15007, Level 16, State 1, Procedure sp_password, Line 29
'conect' 是无效登录名或您没有相应的权限。
说明没有创建connect这个登录, 自然无法修改密码
---------------------------------------------------------------------2.
sp_password '123456','123456','sa'Msg 15151, Level 16, State 1, Line 1
无法对 登录名 'sa' 执行 更改,因为它不存在,或者您没有所需的权限。
说明你指定了错误的旧密码
---------------------------------------------------------------------基于上述原因, 你应该使用下面的语句修改sa的密码:
sp_password null,'!sa123456','sa' -- 密码要够复杂, 旧密码指定为null, 表示强制修改密码
而且怎么会提示ole db?它自己的manage studio登录Sql是用SQLConnection