Share via


SqlDatabase Class

Definition

A sql database resource.

[Microsoft.Rest.Serialization.JsonTransformation]
public class SqlDatabase : Microsoft.Azure.Management.Synapse.Models.TrackedResource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type SqlDatabase = class
    inherit TrackedResource
Public Class SqlDatabase
Inherits TrackedResource
Inheritance
Attributes

Constructors

SqlDatabase()

Initializes a new instance of the SqlDatabase class.

SqlDatabase(String, String, String, String, IDictionary<String,String>, SystemData, String, String, String, Nullable<Guid>, SqlDatabaseDataRetention)

Initializes a new instance of the SqlDatabase class.

Properties

Collation

Gets or sets the collation of the database.

DatabaseGuid

Gets the Guid of the database.

DataRetention

Gets or sets sql database data retention.

Id

Gets fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

(Inherited from Resource)
Location

Gets or sets the geo-___location where the resource lives

(Inherited from TrackedResource)
Name

Gets the name of the resource

(Inherited from Resource)
Status

Gets the status of the database. Possible values include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', 'Scaling', 'OfflineChangingDwPerformanceTiers', 'OnlineChangingDwPerformanceTiers', 'Disabled'

StorageRedundancy

Gets or sets the storage redundancy of the database. Possible values include: 'Local', 'Geo', 'Zone', 'GeoZone'

SystemData

Gets systemData of SqlDatabase.

Tags

Gets or sets resource tags.

(Inherited from TrackedResource)
Type

Gets the type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

(Inherited from Resource)

Methods

Validate()

Validate the object.

Applies to