[英]Load data from XML file to SQL database in Azure using Logic Apps
I'm new to Azure development, and I'm having trouble finding examples of what I want to do. 我是Azure开发的新手,在查找我想做的事的示例时遇到了麻烦。 I have an XML file in Azure file storage and I want to use a Logic App to get that XML data into a SQL database. 我在Azure文件存储中有一个XML文件,并且我想使用Logic App将XML数据获取到SQL数据库中。
I guess I will need to create a "SQL Database" in Azure, before the Logic App can be written (correct?). 我想我需要先在Azure中创建一个“ SQL数据库”,然后才能编写Logic App(对吗?)。 Assuming that I have some destination SQL database, are there Logic App connectors/triggers/whatever that I can use to: 1) recognize that a file has been uploaded to Azure, and 2) process that XML to go into a database? 假设我有一些目标SQL数据库,是否可以使用Logic App连接器/触发器/进行以下任何操作:1)识别文件已上传到Azure,和2)处理XML进入数据库? If so, can such connectors/triggers/whatevers be configured/written so that any business rules I have, for massaging the data between the XML and the database, can be specified? 如果是这样,是否可以配置/编写这样的连接器/触发器/任何东西,以便可以指定我拥有的用于在XML和数据库之间进行数据按摩的任何业务规则?
Thanks! 谢谢!
Yes you are right you need to create the db and then write logicapps to perform necessary functionality. 是的,您是对的,您需要创建数据库,然后编写逻辑应用程序以执行必要的功能。
There are lot of connectors with trigger like blob storage, Sql connector etc... You can perform your processing with the help of " Enterprise Connectors " or you can do custom processing using " AzureFunctions " which integrate with logic apps. 有很多带有触发器的连接器,例如blob存储,Sql连接器等。您可以借助“ 企业连接器 ”执行处理,也可以使用与逻辑应用程序集成的“ AzureFunctions ”进行自定义处理。
In order to perform CRUD operations on an Azure SQL Database, you can use the SQL Connector. 为了在Azure SQL数据库上执行CRUD操作,可以使用SQL连接器。 Documentation on the connector can be found here: Logic App SQL Connector Adding SQL Connector to a Logic App 可以在以下位置找到有关连接器的文档: Logic App SQL连接器 将SQL连接 器 添加到Logic App
I've also written a blog myself on how to use the SQL Connector to perform Bulk operations using a stored procedure and OpenJSON : Bulk insert into SQL 我自己也写了一个博客,内容涉及如何使用SQL连接器通过存储过程和OpenJSON执行批量操作: 批量插入SQL
This might help you in designing your Logic App if you choose to use a stored procedure. 如果您选择使用存储过程,这可能会帮助您设计Logic App。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.