Freigeben über


DacServices.GenerateDriftReport-Methode (String, Nullable<CancellationToken>)

Creates an XML report of the drift that has occurred since the database was last registered.

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

Syntax

'Declaration
Public Function GenerateDriftReport ( _
    targetDatabaseName As String, _
    cancellationToken As Nullable(Of CancellationToken) _
) As String
'Usage
Dim instance As DacServices 
Dim targetDatabaseName As String 
Dim cancellationToken As Nullable(Of CancellationToken)
Dim returnValue As String 

returnValue = instance.GenerateDriftReport(targetDatabaseName, _
    cancellationToken)
public string GenerateDriftReport(
    string targetDatabaseName,
    Nullable<CancellationToken> cancellationToken
)
public:
String^ GenerateDriftReport(
    String^ targetDatabaseName, 
    Nullable<CancellationToken> cancellationToken
)
member GenerateDriftReport : 
        targetDatabaseName:string * 
        cancellationToken:Nullable<CancellationToken> -> string
public function GenerateDriftReport(
    targetDatabaseName : String, 
    cancellationToken : Nullable<CancellationToken>
) : String

Parameter

  • targetDatabaseName
    Typ: System.String
    Name of the target database for deployment.

Rückgabewert

Typ: System.String
String of XML that details the database drift, or null if the database has not been registered.

Ausnahmen

Ausnahme Bedingung
DacServicesException

If a problem occurs during report generation.

OperationCanceledException

CancellationToken

Siehe auch

Verweis

DacServices Klasse

GenerateDriftReport-Überladung

Microsoft.SqlServer.Dac-Namespace