用户“sa"登录失败.用户未与受信任的 SQL Server 连接相关联.(Microsoft SQL Server,错误:18452)在 sql 2008 中 [英] login failed for user 'sa'. The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error: 18452) in sql 2008
问题描述
我使用的是 Windows 7 Ultimate.我可以使用 Windows 身份验证模式登录,但用户 sa
的 SQL 身份验证不起作用.sa
用户已启用.那我该怎么办?
I use windows 7 ultimate. I can login with windows authentication mode but SQL authentication with user sa
doesn't work. sa
user is enabled. So what do I do?
推荐答案
转到 Start
> Programs
> Microsoft SQL Server
> 企业经理
Go to Start
> Programs
> Microsoft SQL Server
> Enterprise Manager
右键单击 SQL Server 实例名称 > 从上下文菜单中选择 Properties
> 在左侧导航栏中选择 Security
节点
Right-click the SQL Server instance name > Select Properties
from the context menu > Select Security
node in left navigation bar
在身份验证部分下,选择SQL Server 和 Windows 身份验证
Under Authentication section, select SQL Server and Windows Authentication
注意:服务器必须停止并重新启动才能生效
Note: The server must be stopped and re-started before this will take effect
错误 18452(不是与受信任的 sql server 连接相关联)
这篇关于用户“sa"登录失败.用户未与受信任的 SQL Server 连接相关联.(Microsoft SQL Server,错误:18452)在 sql 2008 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!