SQL Server 2008 无法使用新创建的用户登录 [英] SQL Server 2008 can't login with newly created user

查看:42
本文介绍了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 无法使用新创建的用户登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆