数据库会自动出现无法链接?

mysky0103 2017-08-29 09:18:10

日志如下 ,出现这个日志这里 就报 用户无法登录了

The SQL Server Network Interface library could not register the Service Principal Name (SPN) [ MSSQLSvc/iZ23xvjchsrZ:1433 ] for the SQL Server service. Windows return code: 0xffffffff, state: 63. Failure to register a SPN might cause integrated authentication to use NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies and if the SPN has not been manually registered.

SQL Server is attempting to register a Service Principal Name (SPN) for the SQL Server service. Kerberos authentication will not be possible until a SPN is registered for the SQL Server service. This is an informational message. No user action is required.

Server local connection provider is ready to accept connection on [ \\.\pipe\sql\query ].
...全文
336 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
wohingradio88 2019-10-03
  • 打赏
  • 举报
回复
引用 10 楼 lizh0103 的回复:
Login failed for user 'sa'. 原因: 无法打开明确指定的数据库“*****”。 [客户端: *******] 数据库是报 登录失败
楼主找到原因吗? 我的也SQL也出现这个问题,打开强制密码策略就会把SA锁定了
OwenZeng_DBA 2017-08-29
  • 打赏
  • 举报
回复
引用 9 楼 lizh0103 的回复:
<add name="dbstr" providerName="System.Data.SqlClient" connectionString="data source=111;initial catalog=222;persist security info=True;user id=sa;password=23333;pooling=False;MultipleActiveResultSets=true" />
这个data source 是IP加端口的方式吗,如192.168.1.111,1433 是这样的模式吗
OwenZeng_DBA 2017-08-29
  • 打赏
  • 举报
回复
引用 7 楼 lizh0103 的回复:
基础提供程序在 Open 上失败。 ---> System.Data.SqlClient.SqlException: 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: Named Pipes Provider, error: 40 - 无法打开到 SQL Server 的连接) ---> System.ComponentModel.Win32Exception: 找不到网络路径。 找不到网络路径
引用 10 楼 lizh0103 的回复:
Login failed for user 'sa'. 原因: 无法打开明确指定的数据库“*****”。 [客户端: *******] 数据库是报 登录失败
你看下 Login failed for user 'sa'. 的错误的时间和你连接不上的时间是不是对应的上
mysky0103 2017-08-29
  • 打赏
  • 举报
回复
Login failed for user 'sa'. 原因: 无法打开明确指定的数据库“*****”。 [客户端: *******] 数据库是报 登录失败
mysky0103 2017-08-29
  • 打赏
  • 举报
回复
<add name="dbstr" providerName="System.Data.SqlClient" connectionString="data source=111;initial catalog=222;persist security info=True;user id=sa;password=23333;pooling=False;MultipleActiveResultSets=true" />
OwenZeng_DBA 2017-08-29
  • 打赏
  • 举报
回复
引用 7 楼 lizh0103 的回复:
基础提供程序在 Open 上失败。 ---> System.Data.SqlClient.SqlException: 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: Named Pipes Provider, error: 40 - 无法打开到 SQL Server 的连接) ---> System.ComponentModel.Win32Exception: 找不到网络路径。 找不到网络路径
你连接数据库的连接字符串怎么填的,,发一下
mysky0103 2017-08-29
  • 打赏
  • 举报
回复
基础提供程序在 Open 上失败。 ---> System.Data.SqlClient.SqlException: 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: Named Pipes Provider, error: 40 - 无法打开到 SQL Server 的连接) ---> System.ComponentModel.Win32Exception: 找不到网络路径。 找不到网络路径
OwenZeng_DBA 2017-08-29
  • 打赏
  • 举报
回复
引用 5 楼 lizh0103 的回复:
是的前端都是sa 登录 。。
那这个报错可能跟你连接不上没有直接关系.你前端连接不上的时候,提示什么错误
mysky0103 2017-08-29
  • 打赏
  • 举报
回复
是的前端都是sa 登录 。。
OwenZeng_DBA 2017-08-29
  • 打赏
  • 举报
回复
引用 3 楼 lizh0103 的回复:
sa 账号,我看网上说 是不是强制密码策略的问题 现在是勾选的,但是我重启了服务器就好了
不是上面的报错是说你用的windows认证,,你们前端程序都用的sql认证就是(sa)吗?
mysky0103 2017-08-29
  • 打赏
  • 举报
回复
sa 账号,我看网上说 是不是强制密码策略的问题 现在是勾选的,但是我重启了服务器就好了
OwenZeng_DBA 2017-08-29
  • 打赏
  • 举报
回复
引用 楼主 lizh0103 的回复:
日志如下 ,出现这个日志这里 就报 用户无法登录了 The SQL Server Network Interface library could not register the Service Principal Name (SPN) [ MSSQLSvc/iZ23xvjchsrZ:1433 ] for the SQL Server service. Windows return code: 0xffffffff, state: 63. Failure to register a SPN might cause integrated authentication to use NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies and if the SPN has not been manually registered. SQL Server is attempting to register a Service Principal Name (SPN) for the SQL Server service. Kerberos authentication will not be possible until a SPN is registered for the SQL Server service. This is an informational message. No user action is required. Server local connection provider is ready to accept connection on [ \\.\pipe\sql\query ].
你sql server 运行用的什么账号
OwenZeng_DBA 2017-08-29
  • 打赏
  • 举报
回复
你们为什么 Kerberos认证呢?

22,295

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧