[英]How to write to Blob Storage in Azure SQL Server using TSql?
I'm creating a stored procedure which gets executed when a CSV is uploaded to Blob Storage.我正在创建一个存储过程,该过程在 CSV 上传到 Blob 存储时执行。 This file is then processed using TSQL and wish to write the result to a file
然后使用 TSQL 处理此文件,并希望将结果写入文件
I have been able to read a file and process it using DATA_SOURCE, database scoped credential and external data source.我已经能够读取文件并使用 DATA_SOURCE、数据库范围的凭证和外部数据源对其进行处理。 I'm however stuck on writing the output back to a different blob container.
然而,我坚持将 output 写回另一个 blob 容器。 How would I do this?
我该怎么做?
If it was me, I'd use Azure Data Factory, you can create a pipeline that's activated when a file is added to a blob, have it import that file, run an SP and export the results to a blob.如果是我,我会使用 Azure 数据工厂,您可以创建一个在文件添加到 blob 时激活的管道,让它导入该文件,运行 SP 并将结果导出到 blob。
That maybe an Azure function that is activated on changes to a blob container.这可能是一个 Azure function 在 blob 容器发生变化时被激活。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.