ssms - 有没有办法使用 saltStack 创建 SQL Server xp_cmdshell_proxy_account
问题描述
我一直在尝试使用 saltStack 在 SQL Server Management Studio (SSMS) 中创建代理凭据。
master和minion之间已经建立了通信。但是凭据没有在 minion 服务器上更新。
root@host:/home/ubuntu# salt minion mssql.tsql_query "EXEC sp_xp_cmdshell_proxy_account 'test1','test123';"
minion:
|_
- Could not run the query
|_
- Statement not executed or executed statement has no resultset
其他命令工作正常。
root@host:/home/ubuntu# salt minion mssql.tsql_query 'SELECT @@version as version' as_dict=True
minion:
|_
----------
version:
Microsoft SQL Server 2014 - 12.0.2000.8 (X64)
Feb 20 2014 20:04:26
Copyright (c) Microsoft Corporation
Express Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: ) (Hypervisor)
我没有找到任何使用tsql_query
模块运行 salt 的教程或链接。
解决方案
推荐阅读
- c++ - protobuf 的 ParseFromString 函数返回 false
- amazon-web-services - IAM 中的角色是什么?
- intersystems-cache - 访问缓存 Objectscript 中的实例变量
- react-native - WIX Navigation V2 - 推送到新屏幕时隐藏底部标签栏
- ruby-on-rails - Rails JSON 过滤器关联结果
- php - Laravel 5.6 将注册表移动到模式弹出窗口
- c - 将文本文件中的值扫描到结构中
- android-studio - 无法解决:com.google.android.gms:play-services:15.0.1
- tcp-ip - TCP 服务器程序 System.OutOfMemoryException 问题
- java - 跳过了 70 帧!应用程序可能在其主线程上做了太多工作