简体   繁体   English

在 Azure SQL 数据库中插入新数据后接收确认

[英]Recieving Ackowledgment after new data insertion in Azure SQL Database

So the situation is that, a person inserts some data into Azure Sql database using some python tool.所以情况是,一个人使用一些 python 工具将一些数据插入到 Azure Sql 数据库中。 I want to be notified as soon as the insertion is done, so that the notification can trigger a python code automatically.我希望在插入完成后立即收到通知,以便通知可以自动触发 python 代码。 My idea is to have my python script that is to be triggered in azure function.我的想法是让我的 python 脚本在 azure function 中触发。

I have two questions:我有两个问题:

  1. How to recieve notification as soon as insertion is done in the Azure SQL Database.在 Azure SQL 数据库中插入完成后如何接收通知。
  2. How can it be used to trigger python script using Azure Functions.如何使用 Azure 函数触发 python 脚本。

You can use the "when an item is created" and the "when an item is modified" triggers for SQL in Azure Logic App to react to data changes on tables.您可以使用 Azure 逻辑应用程序中的 SQL 的“创建项目时”和“修改项目时”触发器来响应表上的数据更改。

在此处输入图像描述

You can add a condition to the trigger and choose as action calling an Azure Function as explained here .您可以向触发器添加条件并选择调用 Azure Function 作为操作,如此所述。

For more information about Azure Logic Apps triggers, please read this documentation.有关 Azure 逻辑应用触发器的更多信息,请阅读文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM