DacServices.GenerateDriftReport Method (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)

public string GenerateDriftReport(
	string targetDatabaseName,
	Nullable<CancellationToken> cancellationToken
)

Parameters

targetDatabaseName
Type: String
The name of the target database for deployment.
cancellationToken
Type: Nullable<CancellationToken>
The optional CancellationToken that can be used to indicate that the operation should be cancelled. Use of this object does not guarantee that the operation will be cancelled.

Return Value

Type: String
The string of XML that details the database drift or null if the database has not been registered.

ExceptionCondition
DacServicesException

If a problem occurs during report generation.

OperationCanceledException

If the CancellationToken has a cancellation requested and the operation could be cancelled.

Community Additions

Show: