
As a result, some requests may fail with the error There is not enough space on the disk. Machines running the import/export request only have 450GB local disk space. The disk space required varies significantly among databases with the same size and can require disk space up to three times the size of the database. Machines processing import/export requests submitted through the Azure portal or PowerShell need to store the BACPAC file as well as temporary files generated by the Data-Tier Application Framework (DacFX). For larger databases, BACPAC export/import may take a long time, and may fail for various reasons. BACPAC import/export for smaller Hyperscale databases (up to 200 GB) is supported using SSMS and SQLPackage version 18.4 and later. To export a managed instance into a BACPAC file, use SQL Server Management Studio (SSMS) or SQLPackage.įor databases in the Hyperscale service tier, BACPAC export/import from Azure portal, from PowerShell using New-AzSqlDatabaseExport or New-AzSqlDatabaseImport, from Azure CLI using az sql db export and az sql db import, and from REST API is not supported. For details, see DBCC SHOW_STATISTICS.Īzure SQL Managed Instance does not currently support exporting a database to a BACPAC file using the Azure portal or Azure PowerShell. A good way to determine if your tables are optimized for export is to run DBCC SHOW_STATISTICS and make sure that the RANGE_HI_KEY is not null and its value has good distribution. This is because the export service needs to complete a table scan to try to export entire table. Without clustered indexes, an export may fail if it takes longer than 6-12 hours. Use a clustered index with non-null values on all large tables.Cease all read and write activity during the export.Temporarily increase your compute size.To increase performance during export, you can: If the export operation exceeds 20 hours, it may be canceled. Storage file name or the input value for StorageURI should be fewer than 128 characters long and cannot end with '.' and cannot contain special characters like a space character or ',*,%,&,:,/,?'. Immutable storage is currently not supported. Storage behind a firewall is currently not supported.
#Is there a way to use sql on mac archive#
To archive a larger BACPAC file, export to local storage.Įxporting a BACPAC file to Azure premium storage using the methods discussed in this article is not supported. If you are exporting to blob storage, the maximum size of a BACPAC file is 200 GB.

Considerationsįor an export to be transactionally consistent, you must ensure either that no write activity is occurring during the export, or that you are exporting from a transactionally consistent copy of your database. A BACPAC file can be stored in Azure Blob storage or in local storage in an on-premises location and later imported back into Azure SQL Database, Azure SQL Managed Instance, or a SQL Server instance.
#Is there a way to use sql on mac zip file#
A BACPAC file is a ZIP file with an extension of BACPAC containing the metadata and data from the database. When you need to export a database for archiving or for moving to another platform, you can export the database schema and data to a BACPAC file.
