简体   繁体   English

如何使用 TSql 写入 Azure SQL 服务器中的 Blob 存储?

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

相关问题 如何使用TSQL在SQL SERVER中更新BLOB - How To Update A BLOB In SQL SERVER Using TSQL 使用 ADF 从 Blob 存储到 SQL 服务器获取 CSV 数据 - Get CSV Data from Blob Storage to SQL server Using ADF 使用 C# 中的 Blob Literal String 将图像写入 SQL 服务器 - Write Image to SQL Server using Blob Literal String in C# 将Azure Blob存储中的Excel导入到Sql Server时出现数据截断问题 - Data Truncation issue while importing excel from Azure Blob storage to Sql Server 如何将Azure Blob文件导入Sql Server 2008 - How to import Azure blob file into Sql Server 2008 如何使用TSQL或SQL Server代理从SFTP获取文件? - How to get files from SFTP using TSQL or SQL Server Agent? 如何将 SQL 查询的结果写入 Azure 云存储? - How can I write the results of a SQL query to azure cloud storage? 在SQL存储过程中访问Azure Blob存储时如何更正“操作系统错误代码12007” - How to correct 'Operating system error code 12007' when accessing Azure blob storage in a SQL stored procedure 在SQL Server中使用TSQL进行数据透视和非透视数据 - Pivot and Unpivoting Data Using TSQL in SQL Server 使用TSQL的SQL Server版本的编程比较 - Programmatic Comparison of SQL Server Versions using TSQL
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM