简体   繁体   English

使用新用户登录名连接到SQL Server 2008时出现登录错误

[英]Login Error while connecting to SQL Server 2008 with new user login

I installed a SQL Server 2008 database server and created a user. 我安装了SQL Server 2008数据库服务器并创建了一个用户。 But when I try to login for the same user through SQL Authentication I get this error: 但是,当我尝试通过SQL身份验证登录同一用户时,出现此错误:

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.) (提供者:Shared Memory Provider,错误:0-管道的另一端没有进程。)

PS : I have already SQL Server authentication through properties. PS:我已经通过属性进行SQL Server身份验证。 Please guide. 请指导。 I am trying to connect through SQL Server Management Studio. 我正在尝试通过SQL Server Management Studio连接。

I was able to achieve above mention in the post by performing the below activities. 通过执行以下活动,我能够在帖子中实现上述目的。

Firstly 首先

  1. When you open the management studio , Right click on the server and click on the properties . 打开management studio ,右键单击server ,然后单击properties In the security section by default only windows authentication is on, make sure SQL Authentication is also on clicking the radio button which has the option to enable both Windows and SQL Authentication. 默认情况下,在security部分中,仅Windows身份验证处于启用状态,请确保SQL身份验证也处于单击状态,该单选按钮具有启用Windows和SQL身份验证的选项。
  2. Go to Configuration Tools --> SQL Server Configuration Manager . 转到Configuration Tools -> SQL Server Configuration Manager Check the protocols . 检查protocols The ordering should be 订购应为

    (i) Shared Memory(Enabled) (i)共享内存(启用)

    (ii) TCP/IP(Enabled) (ii)TCP / IP(启用)

    (iii) Named Pipes(Enabled) (iii)命名管道(启用)

Restart the SQL Server Services Instance 重新启动SQL Server服务实例

Restart your machine. 重新启动机器。

And it should work fine. 它应该工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM