简体   繁体   English

是否可以从 Azure sql 数据库中导出单个表,然后直接保存到 azure blob 存储而不下载到本地磁盘

[英]Is it possible to export a single table from Azure sql database, then directly save into azure blob storage without downloading it to local disk

I've tried to use SSMS, but it requires a temporary location for the BacPac file which is local.我尝试使用 SSMS,但它需要一个本地 BacPac 文件的临时位置。 But i don't want to download it to local, would like to export a single table directly to Azure Blob storage.但我不想将其下载到本地,想将单个表直接导出到 Azure Blob 存储。

Per my experience, we could import table data from the csv file stored in blob storage.根据我的经验,我们可以从存储在 blob 存储中的 csv 文件中导入表数据。 But didn't find a way to export the table data to Blob Storage as csv file directly.但是没有找到直接将表数据作为 csv 文件导出到 Blob Storage 的方法。

You could think about using Data Factory .您可以考虑使用数据工厂

It can achieve that, please reference bellow tutorials:它可以实现,请参考以下教程:

  1. Copy and transform data in Azure SQL Database by using Azure Data Factory 使用 Azure 数据工厂复制和转换 Azure SQL 数据库中的数据
  2. Copy and transform data in Azure Blob storage by using Azure Data Factory 使用 Azure 数据工厂复制和转换 Azure Blob 存储中的数据

Using Azure SQL database as the Source, and choose the table as dataset:使用 Azure SQL 数据库作为源,并选择表作为数据集:

Source dataset:源数据集:

在此处输入图像描述

Source:资源:

在此处输入图像描述

Using Blob storage as Sink, and choose the DelimitedText as the sink format file:使用 Blob 存储作为 Sink,并选择 DelimitedText 作为 sink 格式文件:

Sink dataset:接收器数据集:

在此处输入图像描述

Sink:下沉:

在此处输入图像描述

Run the pipeline and you will get the csv file in Blob Storage.运行管道,您将在 Blob 存储中获得 csv 文件。

Also thanks for the tutorial @Hemant Halwai provided for us.还要感谢@Hemant Halwai 为我们提供的教程

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

相关问题 自动将 SQL 查询结果导出为 txt 文件到 Azure blob 存储 - Export SQL query result as a txt file to Azure blob storage automatically 将 data.table 从 Databricks dbfs 导出到 azure sql 数据库 - Export data table from Databricks dbfs to azure sql database 将大型SQL数据库上载到Azure表存储 - Upload large SQL database to Azure Table Storage 有没有办法从本地 Azure Blob 存储批量插入? - Is there a way BULK INSERT from local Azure Blob Storage? 如何从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? Azure自定义脚本可将数据库从Blob存储还原到托管实例 - Azure Custom Script to restore database from Blob Storage to Managed Instance 如何将镶木地板文件从 Azure Blob 存储复制到雪花表中? - How to copy parquet file from Azure Blob Storage into Snowflake table? Azure SQL数据库:从Azure存储加载json文件 - Azure SQL Database: load json file from Azure storage 是否将数据存储到Azure存储,blob或表? - Storing the data to Azure storage, blob or table? 从本地WCF连接到Azure SQL数据库 - Connecting to Azure SQL database from local WCF
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM