SqlDatabase (Azure SDK for Java Reference Documentation)
Michael Gray
Published Feb 16, 2026
SqlWarehouseasWarehouse() Stringcollation() OffsetDateTimecreationDate() StringcurrentServiceObjectiveName() StringdatabaseId() StringdefaultSecondaryLocation() SqlDatabaseThreatDetectionPolicy.DefinitionStages.BlankdefineThreatDetectionPolicy(String policyName)Begins a definition for a security alert policy.
voiddelete()Deletes the database from the server.
Mono<Void>deleteAsync()Deletes the database asynchronously.
OffsetDateTimeearliestRestoreDate() DatabaseEditionedition() StringelasticPoolId() StringelasticPoolName() SqlDatabaseExportRequest.DefinitionStages.WithAuthenticationTypeAndLoginPasswordexportTo(Creatable<StorageAccount> storageAccountCreatable, String containerName, String fileName)Exports the current database to a new storage account and relative path.
SqlDatabaseExportRequest.DefinitionStages.WithAuthenticationTypeAndLoginPasswordexportTo(StorageAccount storageAccount, String containerName, String fileName)Exports the current database to an existing storage account and relative path.
SqlDatabaseExportRequest.DefinitionStages.WithStorageTypeAndKeyexportTo(String storageUri)Exports the current database to a specified URI path.
SqlDatabaseAutomaticTuninggetDatabaseAutomaticTuning()Gets a SQL database automatic tuning state and options.
SqlDatabaseThreatDetectionPolicygetThreatDetectionPolicy()Gets a SQL database threat detection policy.
TransparentDataEncryptiongetTransparentDataEncryption()Gets an Azure SQL Database Transparent Data Encryption for this database.
Mono<TransparentDataEncryption>getTransparentDataEncryptionAsync()Gets an Azure SQL Database Transparent Data Encryption for this database.
SqlDatabaseImportRequest.DefinitionStages.WithAuthenticationTypeAndLoginPasswordimportBacpac(StorageAccount storageAccount, String containerName, String fileName)Imports into the current database from an existing storage account and relative path; the current database must be empty.
SqlDatabaseImportRequest.DefinitionStages.WithStorageTypeAndKeyimportBacpac(String storageUri)Imports into the current database from a specified URI path; the current database must be empty.
booleanisDataWarehouse() List<SqlDatabaseMetricDefinition>listMetricDefinitions() com.azure.core.http.rest.PagedFlux<SqlDatabaseMetricDefinition>listMetricDefinitionsAsync() List<SqlDatabaseMetric>listMetrics(String filter) com.azure.core.http.rest.PagedFlux<SqlDatabaseMetric>listMetricsAsync(String filter) Map<String,ReplicationLink>listReplicationLinks() com.azure.core.http.rest.PagedFlux<ReplicationLink>listReplicationLinksAsync() List<RestorePoint>listRestorePoints() com.azure.core.http.rest.PagedFlux<RestorePoint>listRestorePointsAsync() Map<String,ServiceTierAdvisor>listServiceTierAdvisors() com.azure.core.http.rest.PagedFlux<ServiceTierAdvisor>listServiceTierAdvisorsAsync() List<SqlDatabaseUsageMetric>listUsageMetrics()Lists the SQL database usage metrics.
com.azure.core.http.rest.PagedFlux<SqlDatabaseUsageMetric>listUsageMetricsAsync()Asynchronously lists the SQL database usage metrics.
longmaxSizeBytes() StringparentId() com.azure.core.management.Regionregion() StringregionName() SqlDatabaserename(String newDatabaseName)Renames the database.
Mono<SqlDatabase>renameAsync(String newDatabaseName)Renames the database asynchronously.
StringrequestedServiceObjectiveName() StringsqlServerName() DatabaseStatusstatus() SqlSyncGroupOperations.SqlSyncGroupActionsDefinitionsyncGroups()