简体   繁体   English

Azure SQL 导出无法在 blob 容器中备份

[英]Azure SQL exports fail to backup in blob container

I have a database in Azure SQL database, single database.我在 Azure SQL 数据库中有一个数据库,单个数据库。 It is Northwind sample that I have created in Azure SQL database, by using scripts.这是我使用脚本在 Azure SQL 数据库中创建的 Northwind 示例。 I am trying to export this database into blob storage in a storage account Gen 2. I have created a storage account in the same resource group where my Azure SQL database, single database resides.我正在尝试将此数据库导出到存储帐户 Gen 2 中的 blob 存储中。我在我的 Azure SQL 数据库所在的同一资源组中创建了一个存储帐户,单个数据库。 Via the portal I export the database.通过门户我导出数据库。 In firewall settings of my database, I have already checked "Allow Azure services and resources to access this server" as shown below:在我的数据库的防火墙设置中,我已经勾选了“允许 Azure 服务和资源访问此服务器”,如下所示:

在此处输入图像描述

I have also added my IP address to have access.我还添加了我的 IP 地址以进行访问。

When I click on export I can see my storage account, and the container to save my backups (export database files) as shown below:当我单击导出时,我可以看到我的存储帐户,以及保存我的备份(导出数据库文件)的容器,如下所示:

在此处输入图像描述

However, when I click OK and my export request is submitted, after a few minutes, I can see in "Import/Export History" that my request status remians on "Running, Progress=1%" and later the status changes to "Failed".但是,当我单击“确定”并提交导出请求时,几分钟后,我可以在“导入/导出历史记录”中看到我的请求状态恢复为“正在运行,进度 = 1%”,然后状态更改为“失败” ”。

在此处输入图像描述

When I check my blob container in the storage account I can see the files are there all with 4B size as show below:当我在存储帐户中检查我的 blob 容器时,我可以看到文件都具有 4B 大小,如下所示:

在此处输入图像描述

What is the cause of this and how can I resolve it?这是什么原因,我该如何解决? Basically I want to export the database into a blob storage by following this link but it is failing to export.基本上我想通过此链接将数据库导出到 blob 存储中,但无法导出。 Thank you in advance.先感谢您。

You can use SQL Server Management Studio (SSMS) to export the database bacpac file in blob storage account.您可以使用 SQL Server Management Studio (SSMS) 导出 blob 存储帐户中的数据库 bacpac 文件。

Follow the below steps:请按照以下步骤操作:

  1. Open the SSMS in your local machine and login to your Azure SQL Server.在本地机器上打开 SSMS 并登录到 Azure SQL 服务器。 Fill the required details and click on Connect as shown below.填写所需的详细信息,然后单击连接,如下所示。

在此处输入图像描述

  1. Right click on database you want to backup.右键单击要备份的数据库。 Follow Task -> Export Data-tier Application .按照任务 -> 导出数据层应用程序

在此处输入图像描述

  1. Select Save to Microsoft Azure option. Select保存到 Microsoft Azure选项。 Click on Connect to connect with your Azure account and provide storage account details.单击连接以连接您的 Azure 帐户并提供存储帐户详细信息。 Click on Next .单击下一步

在此处输入图像描述

  1. On the next page, check the summary of your settings and simply click on Finish button.在下一页上,检查您的设置摘要,然后单击完成按钮。

Once finished, you can check the bacpac file in your storage account.完成后,您可以检查存储帐户中的 bacpac 文件。 See the image below for your reference.请参阅下图以供参考。

在此处输入图像描述

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

相关问题 从 Azure Blob 存储还原 SQL 备份 - Restore SQL Backup from Azure Blob Storage SQL备份到URL-Azure Blob差异 - Sql backup to url - azure blob differential Azure Blob 或文件共享,哪一种最适合 SQL 备份? - Azure Blob or File Share, which one is best for SQL Backup? 无法使用 PowerShell 或 T-SQL 将 SQL 数据库备份到 Azure Blob 存储 - Cannot Backup SQL Database to Azure Blob Storage with PowerShell or T-SQL 增加 SQL VDI(虚拟设备接口)返回的缓冲区大小 SQL 备份到 Azure Blob - Increase the buffer size returned by SQL VDI (Virtual Device Interface) SQL Backup to Azure Blob 从 SQL Server 到 Blob 容器的数据库备份在 24 分钟时失去连接 - Database Backup from SQL Server to Blob Container losing connection at 24 minute time 从3天前开始在Azure Blob存储中创建Sql备份时出现信号灯超时错误 - Semaphore timeout error while creating a Sql backup in Azure blob storage since 3 days ago 如何备份 SQL Server 2019 Express 并上传到 Azure Blob,保留 120 天 - How to backup SQL Server 2019 Express and upload to Azure Blob with 120 days retention Azure SQL:如果有人导出数据库,如何得到通知? - Azure SQL: How to be notified if someone exports the database? SQL Server备份到URL(Azure) - Sql Server Backup to URL (Azure)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM