SQLCMD,PowerShell,BCP工具在存储过程中编码-SQL Server托管实例

发布于 2025-02-12 11:42:51 字数 442 浏览 0 评论 0原文

我计划迁移一个使用SQL Server 2012到Azure上的SQL Server管理实例的旧应用程序。

但是我怀疑它会起作用,因为我的数据库有许多使用sqlcmdbcp工具的存储过程。

例如:

EXEC master..xp_cmdshell @cmd; 

FTP命令,涉及实际文件存储的PowerShell复制命令。

它将在独立的Windows计算机上执行罚款,在该计算机上我们具有实际存储,例如c:/d:/

,但是它在最新的SQL Server在Azure上的管理实例将如何?

请您提出任何想法吗?

在最新的SQL Server在Azure上管理实例中,同一存储的过程代码是否可以正常工作?

I am planning to migrate a legacy application which was using SQL Server 2012 to latest SQL Server managed instance on Azure.

But I doubt it will work, because my database has lots of stored procedures which use SQLCMD and BCP tools.

For example:

EXEC master..xp_cmdshell @cmd; 

FTP commands, PowerShell copy command which involves actual file storage.

It will execute fine on a standalone Windows machine where we have actual storage like C:/ or D:/

But how it will behave in latest SQL Server Managed Instance on Azure?

Please can you suggest any idea?

Will the same stored procedure code work fine in latest SQL Server Managed Instance on Azure?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

末蓝 2025-02-19 11:42:52

azure SQL托管实例。要么将这些东西迁移到其他解决方案,要么使用 sql server上的azure上VMS ,非常容易设置和操作。

xp_cmdshell is not supported on Azure SQL Managed Instance. Either migrate that stuff to a different solution, or use SQL Server on Azure VMs, which is super easy to set up and operate.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文