简体   繁体   English

使用Logic Apps将数据从XML文件加载到Azure中的SQL数据库

[英]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.

相关问题 使用没有数据网关的Azure Logic应用连接到本地SQL数据库吗? - Connect to on-premise SQL database with Azure Logic apps without data gateway? 将XML文件加载到SQL Azure中 - Load XML file into SQL Azure 逻辑应用程序 - 从Web服务读取XML响应并将解析后的数据存储在数据库中 - Logic apps - Read XML response from web service and store parsed data in a database 使用xml模式和xml数据文件创建Sql数据库 - Create Sql Database using xml schema and xml data file 在 Azure 逻辑应用 ARM 模板中,使用本地数据网关的 SQL Server 连接器的 AuthType 属性的可能值是什么? - In Azure Logic Apps ARM template, what are the possible values for the AuthType property for a SQL Server connector using On-Premise Data Gateway? 将Azure SQL数据库导出到XML文件 - Export Azure SQL Database to XML File 使用SQL SERVER从XML文件读取而无大容量加载 - Read from an XML File using SQL SERVER WITHOUT Bulk Load 使用XSD从MS SQL数据库创建XML文件 - Creating xml file from ms sql database using xsd 使用Java从SQL数据库创建XML文件 - Creating a XML file from a SQL database using Java 如何将 SQL 服务器 select 的结果导入 Z3A580FZ03Logic 3022036F63F1 中的新 Excel 文件? - How do I import results of SQL server select into a new Excel file in Azure Logic Apps?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM