Freigeben über


AbortPolicy-Enumeration

Listet die Optionen dafür auf, wie laufende Replikations-Agent-Threads beendet werden, wenn ein unerwartetes Herunterfahren auftritt.

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Replication (in Microsoft.SqlServer.Replication.dll)

Syntax

'Declaration
<ComVisibleAttribute(True)> _
Public Enumeration AbortPolicy
'Usage
Dim instance As AbortPolicy
[ComVisibleAttribute(true)]
public enum AbortPolicy
[ComVisibleAttribute(true)]
public enum class AbortPolicy
[<ComVisibleAttribute(true)>]
type AbortPolicy
public enum AbortPolicy

Elemente

Elementname Beschreibung
Synchronous Agent-Threads werden beim Herunterfahren nur an klar definierten Punkten beendet, z. B. vor oder nach der Ausführung einer Abfrage und der Meldungsprotokollierung.
Asynchronous Der Agent-Thread, der das Herunterfahren initiiert, kann andere laufende Agent-Threads aktiv abbrechen.

Hinweise

An unanticipated shutdown can occur because of a system runtime failure or a user initiated abort request.

The policy should be chosen depending on application state requirements. An asynchronous policy may be more responsive during a shutdown but can require the use of other techniques to return the runtime environment to an expected state. A synchronous policy can help avoid inadvertent interruption of updates to these critical global runtime states when a replication agent is invoked synchronously from an application.