简体   繁体   English

sqlps-找不到路径“ SQLSERVER:\\ SQL \\ SERVER \\ DEFAULT”,因为它不存在

[英]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.

相关问题 SQL Server禁用所有触发器 - 找不到对象“XXXX”,因为它不存在或您没有权限 - SQL Server Disabling All Triggers - Cannot find the object “XXXX” because it does not exist or you do not have permissions 找不到该对象,因为它不存在或您没有权限。 SQL Server 错误 - Cannot find the object because it does not exist or you do not have permissions. Error in SQL Server 找不到凭据,因为它不存在或您没有权限 - Azure SQL 服务器 - Cannot find the CREDENTIAL because it does not exist or you do not have permission- Azure SQL Server 收到错误“找不到对象 'XXX',因为它不存在或您没有权限。” 在 SQL Server 中登录为 SA - Getting the error "Cannot find the object 'XXX', because it does not exist or you do not have permission." logged as SA in SQL Server 获取 Liquibase SQL 服务器错误“找不到 object... 因为它不存在或您没有权限” - Getting Liquibase SQL Server error 'Cannot find the object ... because it doesn't exist or you do not have permissions' SQL Server 错误:无法删除用户,因为它不存在或您没有权限 - SQL Server error: Cannot drop the user because it does not exist or you do not have permission 找不到用户 '',因为它不存在或您没有权限 - Cannot find the user '', because it does not exist or you do not have permission sql server cmdlet(sqlps)和远程服务器 - sql server cmdlet (sqlps) and remote server 可能导致SQL错误的原因找不到对象“ dbo.InspectionEvents”,因为它不存在或您没有权限 - What might cause SQL error Cannot find the object “dbo.InspectionEvents” because it does not exist or you do not have permissions 更新触发器导致 SQL 错误“找不到对象“XXX”,因为它不存在或您没有权限。” - Update trigger causing SQL error "Cannot find the object "XXX" because it does not exist or you do not have permissions."
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM