gpt4 book ai didi

azure - 相当于 Azure DB 中的 XP_CMDSHELL

转载 作者:行者123 更新时间:2023-12-02 08:03:13 26 4
gpt4 key购买 nike

我在 MS Azure VM 上使用 SQL Server 作为服务,并且想在存储过程中使用 xp_cmdshell,但收到以下错误/信息消息:

The module 'ProcExportFacturaEDI_Manual2' depends on the missing object 'xp_cmdshell'. The module will still be created; however, it cannot run successfully until the object exists.

我在网上阅读并发现在 MS Azure 中不起作用。有谁知道它的等价物是什么或者我如何在Azure中使用它?

编辑

我确实安装了它,但收到以下消息,并且应该导出的文件不存在:

(1 row(s) affected) Msg 2812, Level 16, State 62, Line 119 Could not find stored procedure 'xp_cmdshell'.

最佳答案

Azure SQLDB 不支持 xp_cmdshell。句号。不存在“等效项”,因为 Azure SQLDB 在共享环境中运行,无需访问主机,这与您在本地实例中习惯的独立、完全访问主机环境不同。

您将需要重写存储过程才能不使用它。我们无法告诉您“等效”是什么,因为我们无权访问您的存储过程,也不知道要求。

如果您无法避免使用xp_cmdshell,那么 Azure SQLDB 可能不适合您。您将需要了解如何设置在 Azure (IaaS) 上运行 SQL Server 的 VM。

关于azure - 相当于 Azure DB 中的 XP_CMDSHELL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50836220/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com