SQL Server 18452登录错误

 SQL Server 18452登录错误 SQL Server 18452登录错误 无法连接到服务器   服务器:消息18452,   级别16,状态1   [Microsoft][ODBC   SQL   Server   Driver][SQL   Server]用户‘sa’登陆失败。原因:未与信任SQL   Server连接相关联    该错误产生的原因是由于SQL   Server使用了"仅   Windows"的身份验证方式,因此用户无法使用SQL   Server的登录帐户(例如   sa )进行连接,解决方法如下       设置允许SQL   Server身份登录   (基本上这个很有用)  操作步骤:   1。在企业管理器中,展开"SQL   Server组",鼠标右键点击SQL   Server服务器的名称      2。选择"属性"      3。再选择"安全性"选项卡      4。在"身份验证"下,选择"SQL   Server和   Windows"  5。确定,并重新启动SQL   Server服务。   

 Microsoft SQL Server Error 18452: Login failed ... not associated with a trusted SQL server connection Microsoft SQL Server 2005中改变登录方式和2000中几乎一样,只是Management Studio和以前的EM界面有一些区别:

Microsoft SQL Server 2000:

Open The SQL Server Enterprise ManagerStart menu > Programs > Microsoft SQL Server > Enterprise Manager) Expand the tree-control until you can your server Right click on the server name and "SQL Server Properties (Configure)" window will open Select the Security tab For "Authentication", select "SQL Server and Windows"

Microsoft SQL Server 2005:

1. Open the SQL Server Management Studio

2. Right click on the server name and select "Properties", the "Server Properties" window will open

3. Select the Security tab

4. For "Server authentication", select "SQL Server and Windows authentication mode"

注意要启用用户:

1. Open the SQL Server Management Studio

2. Select Security -> Logins

3. Right click user name and select "Properties", the "Login Properties - username" window will open

4. Click the Status tab

5. For "Permission to contect to database engine", select "Grant"

6. For "Login", select "Enabled" and "OK"最后Restart实例.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值