简体   繁体   English

如何将数据从SQL数据库获取到存储Blob中以获取参考数据

[英]How to get data from a SQL database into storage blob for reference data

I have a azure SQL database and want to use the data from the database for Azure Stream Analytics - I know that I have to use a Blob Storage in order to use my data as reference data for my Stream Analytics Job. 我有一个蔚蓝的SQL数据库,想将数据库中的数据用于Azure流分析-我知道我必须使用Blob存储才能将数据用作流分析作业的参考数据。

Question

Now what would be the best way to get my SQL data into the Stream Analytics Job to enrich my incoming data? 现在,将SQL数据添加到Stream Analytics Job中以丰富我的传入数据的最佳方法是什么?

You need to use the 'Azure data factory'. 您需要使用“ Azure数据工厂”。 The 'data factory' can be used to orchestrate and automate the movement and transformation of your reference data from other cloud or on-premise data stores. “数据工厂”可用于协调和自动化来自其他云或本地数据存储的参考数据的移动和转换。

Check this article for a nice example on how to pull in data from a SQL Azure database to the Blob storage - Refreshing reference data 在本文中查看有关如何将数据从SQL Azure数据库提取到Blob存储中的一个很好的示例- 刷新参考数据

Some links on 'Azure data factory' - “ Azure数据工厂”上的某些链接-

Remarks to Previous Answer 上一个答案的备注

Azure Data Factory is a whole new product and oversized, I think it's not appropriate for the relatively small size of what I want to do. Azure数据工厂是一种全新产品,而且尺寸过大,我认为它不适合我想做的相对较小的规模。

Answer 回答

To get the SQL data into the Stream Analytics you have to save it in a Blob Storage (a simple WebApp is enough) and then it can be used to inside the Stream Analytics to enrich the data which is coming from the IoT Hub (eg appending a location to an object which is known to the front end but has no location in the front end due to data separation concerns). 要将SQL数据放入流分析中,您必须将其保存在Blob存储中(一个简单的WebApp就足够了),然后可以将其用于流分析中以丰富来自IoT中心的数据(例如,附加前端已知的对象位置,但由于数据分离的原因,该位置在前端没有位置)。

In the Azure Blob Storage a snapshot from the current state of the SQL database is stored - this is okay for me because neither the amount nor the location of my objects changes very often, so updates to the Blob Storage are very infrequent. 在Azure Blob存储中,存储了SQL数据库当前状态的快照-这对我来说是可以的,因为对象的数量和位置都不会经常更改,因此对Blob存储的更新非常少。

In the Azure Stream Analytics a Blob Storage can be used to append information to a model, so here the model ids can be matched and a location can be appended, then the modified model can be saved again to a blob storage for a later data analysis. 在Azure流分析中,可以使用Blob存储将信息附加到模型,因此这里可以匹配模型ID和位置,然后可以将修改后的模型再次保存到Blob存储以供以后进行数据分析。

暂无
暂无

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

相关问题 如何从Azure数据工厂中的azure blob存储中获取某些数据,并将目标作为SQL数据库执行复制活动? - How to get just certain data from azure blob storage in Azure Data Factory performing copy activity with destination as SQL database? SQL azure中的参考blob存储数据 - Reference blob storage data in SQL azure 如何使用数据工厂将数据从 Azure Blob 存储增量加载到 Azure SQL 数据库? - How to incrementally load data from Azure Blob storage to Azure SQL Database using Data Factory? 使用 ADF 从 Blob 存储到 SQL 服务器获取 CSV 数据 - Get CSV Data from Blob Storage to SQL server Using ADF 如何在没有 Azure 数据工厂的情况下将 csv 文件从 blob 存储加载到 azure sql 数据库 - How to load csv file from blob storage to azure sql database without Azure Data Factory 将数据从数据库移动到 Azure blob 存储 - Moving data from a database to Azure blob storage 如何将数据从 blob 存储复制到 VM? - How to copy data to VM from blob storage? 无法创建从 Azure Blob 存储容器到 Azure Sql 数据库超大规模的外部数据源 - Can't create an external data source from Azure Blob Storage Container to Azure Sql Database Hyperscale 尝试将数据从 Azure SQL 数据库复制到 Azure Blob 存储时出错 - Error trying to copy data from Azure SQL database to Azure Blob Storage 如何使用azure数据工厂将数据从azure SQL数据库增量存储到azure blob存储,基于一些条件:日期需要更新 - How to store data incrementallyfrom azure SQL database to azure blob storage using azure data factory,based on some conditions:date need to be updated
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM