简体   繁体   English

如何将数据从Azure SQL流传输到Azure Blob /事件中心?

[英]How to stream data from Azure SQL to Azure Blob/Event Hubs?

I have a random integer program in python which is posting the random integers into an Azure SQL Database The data in the Azure SQL Database is updating in realtime, and I want to stream this data into Stream Analytics. 我在python中有一个随机整数程序,该程序将随机整数发布到Azure SQL数据库中。AzureSQL数据库中的数据正在实时更新,并且我想将此数据流式传输到Stream Analytics中。 Unfortunately, this data can only stream every 1 minute which is way to slow. 不幸的是,该数据每1分钟只能流一次,这很慢。 Thus, I am thinking of using a streaming input in Stream Analytics, such as Azure Blob Storage or Event Hubs. 因此,我正在考虑在流分析中使用流输入,例如Azure Blob存储或事件中心。 Does anyone know how I could transfer and stream my realtime data to one of these 2 sources, so that I could have Stream Analytics collect my random integer data. 有谁知道我如何将实时数据传输和流式传输到这两个源之一,以便我可以让Stream Analytics收集随机整数数据。

I am using Azure SQL Database to store the data in tables, and then using Stream Analytics to serve as a streaming dataset for Power Bi Online. 我正在使用Azure SQL数据库将数据存储在表中,然后使用流分析作为Power Bi Online的流数据集。

All services I have mentioned (apart from Power BI) are located in the Azure Portal. 我提到的所有服务(Power BI除外)都位于Azure门户中。

You could use a Logic App for that. 您可以为此使用逻辑应用程序。 They have SQL triggers: https://flow.microsoft.com/en-us/blog/introducing-triggers-in-the-sql-connector/ 它们具有SQL触发器: https : //flow.microsoft.com/en-us/blog/introducing-triggers-in-the-sql-connector/

From there you can easily put a message into Event Hubs or Blob. 从那里您可以轻松地将消息发送到事件中心或Blob。

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

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