[英]sqlps- Cannot find path 'SQLSERVER:\SQL\SERVER\DEFAULT' because it does not exist
I am trying to connect to an sql14 server via sqlps powershell module, but keep getting this error: Cannot find path 'SQLSERVER:\\SQL\\SERVER\\DEFAULT' because it does not exist'. 我正在尝试通过sqlps powershell模块连接到sql14服务器,但一直出现此错误:找不到路径'SQLSERVER:\\ SQL \\ SERVER \\ DEFAULT',因为它不存在。
The server does exist and is responsive. 该服务器确实存在并且可以响应。 I tried connecting to it with pssession, and that did work, but then trying again with sqlps module- failed.
我尝试使用pssession连接到它,并且确实起作用,但是随后再次尝试使用sqlps模块失败。
Am I missing something else? 我还有其他东西吗? other sql servers worked fine.
其他SQL服务器工作正常。
EDIT: 编辑:
I found the solution! 我找到了解决方案! I changed the $debugpreference to 'continue'- and got a message: SQL Server PowerShell provider error: Could not connect to server.
我将$ debugpreference更改为'continue'-,并收到一条消息:SQL Server PowerShell提供程序错误:无法连接到服务器。 [Failed to connect to server .
[无法连接服务器 。 --> The target principal name is incorrect.
->目标主体名称不正确。 Cannot generate SSPI context.]
无法生成SSPI上下文。]
with this message I managed to find out the spn for the sqlserver belonged to the computer account and not the user account running the services. 通过此消息,我设法找出sqlserver的spn属于计算机帐户,而不是运行服务的用户帐户。 I fixed that issue and managed to connect.
我已解决该问题并设法建立连接。
I found the solution! 我找到了解决方案! I changed the $debugpreference to 'continue'- and got a message: SQL Server PowerShell provider error: Could not connect to server.
我将$ debugpreference更改为'continue'-,并收到一条消息:SQL Server PowerShell提供程序错误:无法连接到服务器。 [Failed to connect to server .
[无法连接服务器 。 --> The target principal name is incorrect.
->目标主体名称不正确。 Cannot generate SSPI context.]
无法生成SSPI上下文。]
with this message I managed to find out the spn for the sqlserver belonged to the computer account and not the user account running the services. 通过此消息,我设法找出sqlserver的spn属于计算机帐户,而不是运行服务的用户帐户。 I fixed that issue and managed to connect.
我已解决该问题并设法建立连接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.