DatabaseReplicaState Class

 

Represents the runtime state of a database that’s participating in an availability group. This database may be located on any of the replicas that compose the availability group.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

System.Object
  Microsoft.SqlServer.Management.Smo.SmoObjectBase
    Microsoft.SqlServer.Management.Smo.SqlSmoObject
      Microsoft.SqlServer.Management.Smo.DatabaseReplicaState

[<Sealed>]
[<PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
type DatabaseReplicaState = 
    class
        inherit SqlSmoObject
    end

NameDescription
System_CAPS_pubpropertyAvailabilityDatabaseName

Gets the name of the availability database.

System_CAPS_pubpropertyAvailabilityDateabaseId

Gets the identifier of the database within the availability group.

System_CAPS_pubpropertyAvailabilityGroupId

Gets the identifier of the availability group to which the database belongs.

System_CAPS_pubpropertyAvailabilityGroupName

Gets the name of the availability group.

System_CAPS_pubpropertyAvailabilityReplicaId

Gets the identifier of the availability replica within the availability group.

System_CAPS_pubpropertyAvailabilityReplicaServerName

Gets the server name of the availability replica.

System_CAPS_pubpropertyDatabaseId

Gets the identifier of the database, unique within an instance of SQL Server.

System_CAPS_pubpropertyEndOfLogLSN

Gets the LSN of the most recent log record flushed to disk.

System_CAPS_pubpropertyEstimatedDataLoss

Gets the estimated data loss.

System_CAPS_pubpropertyEstimatedRecoveryTime

Gets the estimated recovery time.

System_CAPS_pubpropertyExecutionManager

(Inherited from SqlSmoObject.)

System_CAPS_pubpropertyFileStreamSendRate

Gets the rate at which the files are sent to the secondary replica.

System_CAPS_pubpropertyIsFailoverReady

Gets or sets a value that indicates whether the database is marked synchronized in the cluster.

System_CAPS_pubpropertyIsJoined

Gets or sets a value that indicates whether the availability database has a physical replica on the server instance.

System_CAPS_pubpropertyIsLocal

Gets or sets a value that indicates whether the database is local to the instance.

System_CAPS_pubpropertyIsSuspended

Gets a value that indicates whether the state of the database replica is suspended.

System_CAPS_pubpropertyLastCommitLSN

Gets the LSN of the last commit record.

System_CAPS_pubpropertyLastCommitTime

Gets the time corresponding to the last commit record.

System_CAPS_pubpropertyLastHardenedLSN

Gets the start of the log block that contained the latest log records that were written to disk.

System_CAPS_pubpropertyLastHardenedTime

Gets the time when the log-block identifier for the last hardened LSN.

System_CAPS_pubpropertyLastReceivedLSN

Gets the last log block that was received on this secondary replica for this database.

System_CAPS_pubpropertyLastReceivedTime

Gets the time when the log block identifier was last received on the secondary.

System_CAPS_pubpropertyLastRedoneLSN

Gets the last log record that was redone on the secondary database.

System_CAPS_pubpropertyLastRedoneTime

Gets the time when the last log record was redone on the secondary database.

System_CAPS_pubpropertyLastSentLSN

Gets the last block of transaction log records that was sent to this secondary replica for this database.

System_CAPS_pubpropertyLastSentTime

Gets the time when the last log block was sent.

System_CAPS_pubpropertyLogSendQueueSize

Gets the amount of log records in the log files of the primary database that has not been sent to the secondary replica.

System_CAPS_pubpropertyLogSendRate

Gets the rate at which log records are being sent to the secondary replica.

System_CAPS_pubpropertyParent

Gets the AvailabilityGroup object that is the parent of the DatabaseReplicaState object.

System_CAPS_pubpropertyProperties

Gets a collection of Property objects that represent the object properties.(Inherited from SqlSmoObject.)

System_CAPS_pubpropertyRecoveryLSN

Gets the end of the transaction log before the replica writes any new log records after recovery failover.

System_CAPS_pubpropertyRedoQueueSize

Gets the amount of log records in the log files of the secondary replica that has not yet been redone.

System_CAPS_pubpropertyRedoRate

Gets the rate at which the log records are being redone.

System_CAPS_pubpropertyReplicaAvailabilityMode

Gets the availability mode of the availability replica.

System_CAPS_pubpropertyReplicaRole

Gets the role of the availability replica.

System_CAPS_pubpropertyState

Gets the state of the referenced object.(Inherited from SmoObjectBase.)

System_CAPS_pubpropertySuspendReason

Gets the reason for a database replica to be in suspended state.

System_CAPS_pubpropertySynchronizationPerformance

Gets the performance of the synchronization for the database.

System_CAPS_pubpropertySynchronizationState

Gets the state of the availability database synchronization.

System_CAPS_pubpropertyTruncationLSN

Gets the log truncation value, which may be higher than the local truncation LSN if local log truncation is blocked.

System_CAPS_pubpropertyUrn

Gets the Uniform Resource Name (URN) address value that uniquely identifies the object.(Inherited from SqlSmoObject.)

System_CAPS_pubpropertyUserData

Gets or sets user-defined data associated with the referenced object.(Inherited from SmoObjectBase.)

NameDescription
System_CAPS_pubmethodDiscover()

Discovers a list of type Object.(Inherited from SqlSmoObject.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFormatSqlVariant(Object)

Formats an object as T: Microsoft.Data.Schema.Sql.DataGenerator.SqlVariant type.(Inherited from SqlSmoObject.)

System_CAPS_protmethodGetContextDB()

Gets the context database that is associated with this object.(Inherited from SqlSmoObject.)

System_CAPS_protmethodGetDBName()

Gets the database name that is associated with the object.(Inherited from SqlSmoObject.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_protmethodGetPropValue(String)

Gets a property value of the SqlSmoObject object.(Inherited from SqlSmoObject.)

System_CAPS_protmethodGetPropValueOptional(String)

Gets a property value of the SqlSmoObject object.(Inherited from SqlSmoObject.)

System_CAPS_protmethodGetPropValueOptionalAllowNull(String)

Gets a property value of the SqlSmoObject object.(Inherited from SqlSmoObject.)

System_CAPS_protmethodGetServerObject()

Gets the server of the SqlSmoObject object.(Inherited from SqlSmoObject.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInitialize()

Initializes the object and forces the properties be loaded.(Inherited from SqlSmoObject.)

System_CAPS_pubmethodInitialize(Boolean)

Initializes the object and forces the properties be loaded.(Inherited from SqlSmoObject.)

System_CAPS_protmethodIsObjectInitialized()

Verifies whether the object has been initialized.(Inherited from SqlSmoObject.)

System_CAPS_protmethodIsObjectInSpace()

Verifies whether the object is isolated or connected to the instance of SQL Server.(Inherited from SqlSmoObject.)

System_CAPS_pubmethodIsSupportedProperty(String)

(Inherited from SqlSmoObject.)

System_CAPS_pubmethodRefresh()

Refreshes the object and retrieves properties when the object is next accessed.(Inherited from SqlSmoObject.)

System_CAPS_protmethodSetParentImpl(SqlSmoObject)

Sets the parent of the SqlSmoObject to the newParent parameter.(Inherited from SqlSmoObject.)

System_CAPS_pubmethodToString()

Returns a String that represents the referenced object.(Inherited from SqlSmoObject.)

System_CAPS_pubmethodValidate(String, Object[])

Validates the state of an object.(Inherited from SmoObjectBase.)

NameDescription
System_CAPS_pubeventPropertyChanged

Represents the event that occurs when a property is changed.(Inherited from SqlSmoObject.)

System_CAPS_pubeventPropertyMetadataChanged

Represents the event that occurs when property metadata changes.(Inherited from SqlSmoObject.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIAlienObject.Discover()

Discovers any dependencies.

Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SqlSmoObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIAlienObject.GetDomainRoot()

Returns the root of the domain.(Inherited from SqlSmoObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIAlienObject.GetParent()

Gets the parent of this object. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SqlSmoObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIAlienObject.GetPropertyType(String)

Gets the type of the specified property.(Inherited from SqlSmoObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIAlienObject.GetPropertyValue(String, Type)

Gets the value of the specified property.(Inherited from SqlSmoObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIAlienObject.GetUrn()

Gets the Unified Resource Name (URN) of the object.

Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SqlSmoObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIAlienObject.Resolve(String)

Gets the instance that contains the information about the object from the Unified Resource Name (URN) of the object.(Inherited from SqlSmoObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIAlienObject.SetObjectState(SfcObjectState)

Sets the object state to the specified SfcObjectState value.(Inherited from SqlSmoObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIAlienObject.SetPropertyValue(String, Type, Object)

Sets the property value.(Inherited from SqlSmoObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodISfcPropertyProvider.GetPropertySet()

Gets the interface reference to the set of properties of this object.

Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SqlSmoObject.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: