SQLCMD,PowerShell,BCP工具在存储过程中编码-SQL Server托管实例
我计划迁移一个使用SQL Server 2012到Azure上的SQL Server管理实例的旧应用程序。
但是我怀疑它会起作用,因为我的数据库有许多使用sqlcmd
和bcp
工具的存储过程。
例如:
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.