Get Import Export Database Status (classic)


THIS TOPIC APPLIES TO: noSQL Server yesAzure SQL DatabaseyesAzure SQL Data Warehouse noParallel Data Warehouse

Returns the status of an Import/Export operation on an Azure SQL Database.


The recommended REST commands to work with SQL Database are the Resource Manager based Azure SQL Database REST API. While there is no change to SQL Database, be aware that the classic deployment model command in this article is scheduled for deprecation on December 1, 2019. For a table providing links to the specific new commands you should use, see Operations for Azure SQL Databases.


The Import/Export Database Status request must be specified as follows:

  • Replace {subscriptionId} with your subscription ID.

  • Replace {serverName} with the name of the source server.

Method Request URI HTTP Version
POST{subscriptionId}/services/sqlservers/servers/{serverName}/DacOperations/Status HTTP/1.1

URI Parameters


Request Headers

The following table describes the required and optional request headers:

Request Header Description
x-ms-version Required. Specifies the version of the operation to use for this request. This header should be set to 2012-03-01.
x-ms-client-request-id Optional. Provides a client-generated, opaque value with a 1 KB character limit. Using this header is highly recommended for correlating client-side activities with requests received by the server.

Request Body

The format of the request body is as follows:

<StatusInput xmlns=""  xmlns:i="">  

The following table describes the elements of the request body:

Element Name Description
Password The password for connecting to the Azure SQL Database Server.
RequestID The Request ID of the operation for which to query the status. The Request ID is returned in response of the Import and Export operations.
ServerName The fully qualified domain name of the Azure SQL Database Server where the operation is taking place.
UserName The username needed to connect to the server.


The response includes an HTTP status code, a set of response headers, and a response body.

Response Headers

The response for this operation includes the following headers.

Response Header Description
x-ms-request-id A value that uniquely identifies a request made against the database management service. This request id is used for request tracking. If a failure occurs that requires the user to contact Microsoft Support, the request id should be provided to Microsoft to assist in tracking and resolving the failure for the request.

Response Body

The Guid in the response is the RequestID and can be used to query the service for the status of the operation.

<ArrayOfStatusInfo xmlns="" xmlns:i="">  
    <ErrorMessage i:nil="true"/>  

The following table describes the elements of the response body:

Element Name Description
Blob Uri The URI of the BACPAC file.
DatabaseName The name of the database.
LastModifiedTime The last time the database was modified.
QueuedTime The time the import or export operation entered the queue.
RequestID The identifier for the original import/export operation.
RequestType The type of request; Import or Export.
ServerName The name of the server where the import/export operation.
Status The status of the import/export operation.

See Also

Common REST API Error Codes
Operations for Azure SQL Databases
Azure SQL Database Cmdlets
Azure SQL Database