远程SQL Server连接问题 [英] SQL Server connection issue from remotely
问题描述
嗨专家,
当我尝试远程使用SSMS连接SQL Server时,我收到以下错误。 但是在错误日志中我发现登录    用户'NT AUTHORITY \ NETWORK SERVICE'登录失败。原因:无法打开显式
指定的数据库。 [客户:<本地机器>]
NB。在"NT AUTHORITY \ NETWORK SERVICE"下运行的SQL Server服务。但是我可以使用SQLCMD和SSMS在本地连接
无法连接到...... ..
"目标主体名称不正确。 无法生成SSPI上下文。 (.Net SqlClient数据提供程序)"
请指教!
Hi Expert,
When I try to connect SQL Server using SSMS from remotely then I got the following error. But in the error log I found that Logon Login failed for user 'NT AUTHORITY\NETWORK SERVICE'. Reason: Failed to open the explicitly
specified database. [CLIENT: <local machine>]
NB. The SQL Server Service running under the 'NT AUTHORITY\NETWORK SERVICE'. But I can connect locally using SQLCMD and SSMS
Cannot connect to …..
"The target principal name is incorrect. Cannot generate SSPI context. (.Net SqlClient Data Provider)"
Please advise!
推荐答案
-
数据库存在于SQL服务器上并且它处于联机状态。 -
用户有权访问指定的数据库。 -
即默认数据库用于登录的se是正确的,并且用户可以访问它。 -
连接字符串未被更改。
这篇关于远程SQL Server连接问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!