SqlDatabaseCreateMode Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the mode of database creation.
Default: regular database creation.
Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database.
Secondary: creates a database as a secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database.
PointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified.
Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore.
Restore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time.
RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID.
Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition.
public readonly struct SqlDatabaseCreateMode : IEquatable<Azure.ResourceManager.Sql.Models.SqlDatabaseCreateMode>
type SqlDatabaseCreateMode = struct
Public Structure SqlDatabaseCreateMode
Implements IEquatable(Of SqlDatabaseCreateMode)
- Inheritance
-
SqlDatabaseCreateMode
- Implements
Constructors
SqlDatabaseCreateMode(String) |
Initializes a new instance of SqlDatabaseCreateMode. |
Properties
Copy |
Copy. |
Default |
Default. |
OnlineSecondary |
OnlineSecondary. |
PointInTimeRestore |
PointInTimeRestore. |
Recovery |
Recovery. |
Restore |
Restore. |
RestoreExternalBackup |
RestoreExternalBackup. |
RestoreExternalBackupSecondary |
RestoreExternalBackupSecondary. |
RestoreLongTermRetentionBackup |
RestoreLongTermRetentionBackup. |
Secondary |
Secondary. |
Methods
Equals(SqlDatabaseCreateMode) |
Indicates whether the current object is equal to another object of the same type. |
ToString() |
Returns the fully qualified type name of this instance. |
Operators
Equality(SqlDatabaseCreateMode, SqlDatabaseCreateMode) |
Determines if two SqlDatabaseCreateMode values are the same. |
Implicit(String to SqlDatabaseCreateMode) |
Converts a string to a SqlDatabaseCreateMode. |
Inequality(SqlDatabaseCreateMode, SqlDatabaseCreateMode) |
Determines if two SqlDatabaseCreateMode values are not the same. |
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기