Sdílet prostřednictvím


AzureSqlDatabaseAdapter.FailoverDatabase Method

Definition

Failovers a database

public void FailoverDatabase (string resourceGroupName, string serverName, string databaseName, string replicaType);
member this.FailoverDatabase : string * string * string * string -> unit
Public Sub FailoverDatabase (resourceGroupName As String, serverName As String, databaseName As String, replicaType As String)

Parameters

resourceGroupName
String

The resource group the server is in

serverName
String

The name of the Azure Sql Database Server

databaseName
String

The name of the Azure Sql Database to failover

replicaType
String

Whether to failover primary replica or readable secondary replica

Applies to