SQL Server 2008 can#39;t login with newly created user(SQL Server 2008 无法使用新创建的用户登录)
问题描述
我使用的是 Windows Vista,但无法使用新创建的用户登录.
I'm using using Windows Vista and I'm having trouble logging in with a newly created user.
- 我打开 SQL Server Management Studio.
- 我通过右键单击安全"->登录"来创建一个新登录.
检查:SQL Server 身份验证
登录名:测试员
密码:test
点击确定 - 我将此用户添加到用户映射到我选择的数据库.
- 单击文件 -> 连接对象资源管理器,选择 SQL Server 身份验证并输入 tester/test 并单击连接.
我收到一个错误:
Login failed for user 'tester'. (Microsoft SQL Server, Error: 18456"
with Severity = 14 and State = 1.
导致此错误的原因是什么,我该如何使用我的用户登录?
What causes this error and how do I login with my user?
推荐答案
SQL Server 未配置为允许混合身份验证.
SQL Server was not configured to allow mixed authentication.
以下是修复步骤:
- 右键单击对象资源管理器根目录下的 SQL Server 实例,然后单击属性
- 从左侧窗格中选择安全性.
选择 SQL Server 和 Windows 身份验证模式单选按钮,然后单击确定.
- Right-click on SQL Server instance at root of Object Explorer, click on Properties
- Select Security from the left pane.
Select the SQL Server and Windows Authentication mode radio button, and click OK.
右键单击 SQL Server 实例,选择重新启动(或者,打开服务并重新启动 SQL Server 服务).
Right-click on the SQL Server instance, select Restart (alternatively, open up Services and restart the SQL Server service).
这对 IBM Connections 用户也非常有帮助,我的向导在我修复此设置之前无法连接.
This is also incredibly helpful for IBM Connections users, my wizards were not able to connect until I fxed this setting.
这篇关于SQL Server 2008 无法使用新创建的用户登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:SQL Server 2008 无法使用新创建的用户登录
- 导入具有可变标题的 Excel 文件 2021-01-01
- 如何将 Byte[] 插入 SQL Server VARBINARY 列 2021-01-01
- 远程 mySQL 连接抛出“无法使用旧的不安全身份验证连接到 MySQL 4.1+"来自 XAMPP 的错误 2022-01-01
- 如何将 SonarQube 6.7 从 MySQL 迁移到 postgresql 2022-01-01
- 在SQL中,如何为每个组选择前2行 2021-01-01
- SQL 临时表问题 2022-01-01
- 如何使用 pip 安装 Python MySQLdb 模块? 2021-01-01
- 使用 Oracle PL/SQL developer 生成测试数据 2021-01-01
- 以一个值为轴心,但将一行上的数据按另一行分组? 2022-01-01
- 更改自动增量起始编号? 2021-01-01
