alternative xp_cmdshell in sql azure

瘦欲@ 提交于 2019-12-11 03:31:30

问题


what is the alternative of XP_CMDshell ? it is working fine in sql server but it is not support in sql azure so what is alternative for sql azure ?


回答1:


I assume you need command line access to access BCP since you are trying to create and upload/download data into a flat or xml file.

SQL Azure does not provide access to a command prompt. Think of SQL Azure as just a virtualized service, without host infrastructure (Virtualized or physical). Since BCP is actually a command line based utility you won't have access to it from Azure. You'll want to setup BCP, which is part of the command line utilities, on a machine that does have access to command line. That machine might be either on-premise or Azure IaaS. You can install just the BCP component.

http://www.microsoft.com/en-us/download/details.aspx?id=36433

Alternatively if you don't want to setup physical infrastructure to complete this, Azure Data Factory would be able to complete the task of moving data between flat files and databases.



来源:https://stackoverflow.com/questions/33407800/alternative-xp-cmdshell-in-sql-azure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!