Update Database Copy (classic)

 

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

Updates the details of an Azure SQL Database copy.

Request

The Update Database Copy request must be specified as follows:

Method Request URI HTTP Version
PUT https://management.core.windows.net:8443/{subscriptionId}/services/sqlservers/servers/{serverName}/databases/{databaseName}/databasecopies/{linkID} HTTP/1.1

This method is synchronous and transactional. If successful, the changes are in effect immediately.

URI Parameters

None.

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:

<ServiceResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http  
://schemas.microsoft.com/windowsazure">  
  <IsForcedTerminate>True</IsForcedTerminate>  
</ServiceResource>  

The following table describes the elements of the request body:

Element Name Description
IsForcedTerminate Use IsForcedTerminate to specify whether a Stop Database Copy operation performed on the database should result in forced or planned termination.

Response

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

Status Code

Response Headers

The response for this operation includes the following headers. The response may also include additional standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.

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 following is an example response body:

<ServiceResource xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">  
  <Name>439abd2a-548d-49e6-8fea-36dfb03b31c8</Name>  
  <Type>Microsoft.SqlAzure.DatabaseCopy</Type>  
  <State>Normal</State>  
  <SelfLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/cjxrvozmbh/databases/dbtest1/databasecopies/439abd2a-548d-49e6-8fea-36dfb03b31c8</SelfLink>  
  <ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/cjxrvozmbh/databases/dbtest1</ParentLink>  
  <SourceServerName>cjxrvozmbh</SourceServerName>  
  <SourceDatabaseName>dbtest1</SourceDatabaseName>  
  <DestinationServerName>muez4w94zn</DestinationServerName>  
  <DestinationDatabaseName>dbtest1</DestinationDatabaseName>  
  <IsContinuous>True</IsContinuous>  
  <StartDate>2014-04-07T21:04:02.0270000Z</StartDate>  
  <ModifyDate>2014-04-07T21:04:17.0870000Z</ModifyDate>  
  <PercentComplete>100</PercentComplete>  
  <ReplicationState>2</ReplicationState>  
  <ReplicationStateDescription>CATCH_UP</ReplicationStateDescription>  
  <LocalDatabaseId>5</LocalDatabaseId>  
  <IsLocalDatabaseReplicationTarget>False</IsLocalDatabaseReplicationTarget>  
  <IsInterlinkConnected>True</IsInterlinkConnected>  
</ServiceResource>  

For a description of the response body, see Get Database Copy (classic).

See Also

Common REST API Error Codes
Azure SQL Database
Operations for Azure SQL Databases
Copying Databases in Azure SQL Database
Geo-Replication in Azure SQL Database
Azure SQL Database Cmdlets