SQL Server 2008 无法使用新创建的用户登录

2023-10-09数据库问题
3

本文介绍了SQL Server 2008 无法使用新创建的用户登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我使用的是 Windows Vista,但无法使用新创建的用户登录.

I'm using using Windows Vista and I'm having trouble logging in with a newly created user.

  1. 我打开 SQL Server Management Studio.
  2. 我通过右键单击安全"->登录"来创建一个新登录.
    检查:SQL Server 身份验证
    登录名:测试员
    密码:test
    点击确定
  3. 我将此用户添加到用户映射到我选择的数据库.
  4. 单击文件 -> 连接对象资源管理器,选择 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.

以下是修复步骤:

  1. 右键单击对象资源管理器根目录下的 SQL Server 实例,然后单击属性
  2. 从左侧窗格中选择安全性.
  3. 选择 SQL Server 和 Windows 身份验证模式单选按钮,然后单击确定.

  1. Right-click on SQL Server instance at root of Object Explorer, click on Properties
  2. Select Security from the left pane.
  3. 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 无法使用新创建的用户登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

按天分组的 SQL 查询
SQL query to group by day(按天分组的 SQL 查询)...
2024-04-16 数据库问题
77

在 Group By 查询中包含缺失的月份
Include missing months in Group By query(在 Group By 查询中包含缺失的月份)...
2024-04-16 数据库问题
12

sql group by 与不同
sql group by versus distinct(sql group by 与不同)...
2024-04-16 数据库问题
37

如何在SQL中返回每个组的增量组号
How to return a incremental group number per group in SQL(如何在SQL中返回每个组的增量组号)...
2024-04-16 数据库问题
8

统计分组返回的记录数
Count number of records returned by group by(统计分组返回的记录数)...
2024-04-16 数据库问题
10

带聚合函数的 SQL GROUP BY CASE 语句
SQL GROUP BY CASE statement with aggregate function(带聚合函数的 SQL GROUP BY CASE 语句)...
2024-04-16 数据库问题
23