SQL Server 2008 错误 233

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6072505/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-01 10:40:03  来源:igfitidea点击:

SQL Server 2008 Error 233

sqlsql-server

提问by clumpter

I'm creating new login in SQL Server 2008 with following sql script:

我正在使用以下 sql 脚本在 SQL Server 2008 中创建新登录:

CREATE LOGIN [xyz] WITH PASSWORD='xyz',
            DEFAULT_DATABASE=[master], DEFAULT_LANGUAGE=[us_english], 
            CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF

It creates new login successfully. But when I try to login with it using SQL Server Management Studio it fails saying:

它成功创建新登录。但是当我尝试使用 SQL Server Management Studio 登录它时,它没有说:

A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.) (Microsoft SQL Server, Error: 233)

已成功与服务器建立连接,但随后在登录过程中出现错误。(提供程序:共享内存提供程序,错误:0 - 管道的另一端没有进程。)(Microsoft SQL Server,错误:233)

What's wrong? How do I solve this issue?

怎么了?我该如何解决这个问题?

回答by GorgE_MirO

Here is how I done it, maybe it works for you too.

这是我如何做到的,也许它也适用于你。

  1. login Microsoft SQL Server 2012 with windows authentication.

  2. right-click onto the server name in Object Explorer and click Properties

  3. In the new tab click Security

  4. select SQL Server and Windows Authentication

  5. Ok

  6. Close the SQL server management studio.

  7. start+run

  8. write services.msc

  9. search for SQL there and restart all services.

  1. 使用 Windows 身份验证登录 Microsoft SQL Server 2012。

  2. 右键单击对象资源管理器中的服务器名称,然后单击属性

  3. 在新选项卡中单击安全

  4. 选择 SQL Server 和 Windows 身份验证

  5. 好的

  6. 关闭 SQL 服务器管理工​​作室。

  7. 开始+运行

  8. 写services.msc

  9. 在那里搜索 SQL 并重新启动所有服务。

that works for me.

这对我行得通。

回答by Beevik

It's also possible that you're trying to use SQL Server Authentication without having enabled it. To fix this, right-click Properties on your server instance in SQL Server Management Studio, and update the security settings to include "SQL Server and Windows Authentication mode".

您也有可能在未启用 SQL Server 身份验证的情况下尝试使用它。要解决此问题,请在 SQL Server Management Studio 中右键单击服务器实例上的“属性”,然后更新安全设置以包括“SQL Server 和 Windows 身份验证模式”。

回答by Andomar

Looks like you're trying to connect using named pipes, but SQL Server is not listening on that protocol. See MSDN.

看起来您正在尝试使用命名管道进行连接,但 SQL Server 并未侦听该协议。 请参阅 MSDN。

The two fixes MSDN suggests are:

MSDN 建议的两个修复程序是:

  • Connect using TCP/IP, or use the SQL Server Configuration Manager to enable remote connections using named pipes.
  • Using SQL Server Configuration Manager on the client computer, move TCP before named pipes in the protocol order list.
  • 使用 TCP/IP 连接,或使用 SQL Server 配置管理器启用使用命名管道的远程连接。
  • 使用客户端计算机上的 SQL Server 配置管理器,将 TCP 移动到协议顺序列表中的命名管道之前。

回答by Manoj Shrivastava

Login with Administrator in SQL Server Go to Securities >> Logins >> select your user name and go to properties

在 SQL Server 中使用管理员登录转到证券 >> 登录 >> 选择您的用户名并转到属性

From Status >> uncheck user account lock check box Change password for the user Restart the sql server and login with your username.

从状态>>取消选中用户帐户锁定复选框更改用户的密码重新启动sql server并使用您的用户名登录。

回答by CSharp

I was facing the same error.
I've resolved the error by following below mentioned steps:

我面临同样的错误。
我已按照以下提到的步骤解决了该错误:

  1. Disable named pipes and restart sql services.
  2. After restart sql server I enabled names pipes and did a sql server restart again (Link for Step 1 and 2)
  3. Connect to SQL server via studio.
  4. Right click on SQL instance --> Properties --> Connections --> "Set the Maximum number of 5. concurrent connections to '0' ".
  5. Save the change.
  6. Restart the SQL server if possible. (Link for step 3 to 6)
  1. 禁用命名管道并重新启动 sql 服务。
  2. 重新启动 sql server 后,我启用了名称管道并再次重新启动了 sql server(步骤 1 和 2 的链接
  3. 通过工作室连接到 SQL 服务器。
  4. 右键单击SQL实例-->属性-->连接-->“将最大5个并发连接数设置为'0'”。
  5. 保存更改。
  6. 如果可能,重新启动 SQL 服务器。(步骤 3 到 6 的链接

I hope this will help someone

我希望这会帮助某人

回答by Atheeth

This is might not be a connection issue . Check your default database and if that is online . More commonly this issues seen when the default database will be offline or not exists . If your default database other than master ,better check this option.

这可能不是连接问题。检查您的默认数据库以及它是否在线。更常见的是,当默认数据库离线或不存在时,会出现此问题。如果您的默认数据库不是 master ,最好选中此选项。

回答by BKH

I had a similar issue: 1. log in as the master user or windows authenticated user. 2. right click on the database --> properties --> security --> 3. change Windows Authentication mode to "SQL server and windows authentication mode" by clicking on the radio button. (if it is not) 4. restart the server

我有一个类似的问题: 1. 以主用户或 Windows 身份验证用户身份登录。2. 右键单击​​数据库 --> 属性 --> 安全性 --> 3. 通过单击单选按钮将 Windows 身份验证模式更改为“SQL 服务器和 Windows 身份验证模式”。(如果不是) 4. 重启服务器

回答by patrickwlarsen

I had the same issue when i first setup SQL Server 2014 on my local machine. In my case the solution was to set a correct defualt database.

我第一次在本地机器上安装 SQL Server 2014 时遇到了同样的问题。在我的情况下,解决方案是设置一个正确的默认数据库。

回答by Maloy Bain

I got a way to go around the problem.

我有办法解决这个问题。

  • Open one instance and login using the windows authentication
  • allow sql and windows auth both by right cliking on the db server.
  • Open second instance and login using sql authentication.
  • 打开一个实例并使用 Windows 身份验证登录
  • 通过在数据库服务器上右键单击来允许 sql 和 windows 身份验证。
  • 打开第二个实例并使用 sql 身份验证登录。

bingo the sql authenticated instance open .. :)

宾果游戏 sql 认证实例打开 .. :)

Actually in this way we cheat the sql authenticated instance as it tries to find an already running instance.. worked fr me.. good luck

实际上,通过这种方式,我们欺骗了 sql 验证实例,因为它试图找到一个已经运行的实例.. 对我来说有效.. 祝你好运

回答by muhammad liaquat

I tried most of the solution but was not able to solve it until I found this URLwhich says to do the following:

我尝试了大部分解决方案,但直到我发现这个 URL说要执行以下操作才能解决它:

Open SQL Server Management Studio and run the these queries:

打开 SQL Server Management Studio 并运行以下查询:

sp_configure 'show advanced options', 1;
go
reconfigure
go
sp_configure 'user connections', 0
go
reconfigure
go

The reason why we got this error is that the user connections was reset to 1, so only one user was able to connect with the SQL server. just a simple query worked for. I hope this will work for others as well.

我们得到这个错误的原因是用户连接被重置为 1,所以只有一个用户能够连接到 SQL 服务器。只是一个简单的查询。我希望这也适用于其他人。