SchemaComparisonResult.GenerateScript Method

Definition

Overloads

GenerateScript(String)

Generates a T-SQL update script that makes the target schema consistent with the source schema.

GenerateScript(String, CancellationToken)

Generates a T-SQL update script that makes the target schema consistent with the source schema.

GenerateScript(String)

Generates a T-SQL update script that makes the target schema consistent with the source schema.

public Microsoft.SqlServer.Dac.Compare.SchemaCompareScriptGenerationResult GenerateScript (string databaseName);
member this.GenerateScript : string -> Microsoft.SqlServer.Dac.Compare.SchemaCompareScriptGenerationResult
Public Function GenerateScript (databaseName As String) As SchemaCompareScriptGenerationResult

Parameters

databaseName
String

The name of the target database.

Returns

SchemaCompareScriptGenerationResult

Exceptions

If the target is a dacpac and a null or empty databaseName value was provided.

Applies to

GenerateScript(String, CancellationToken)

Generates a T-SQL update script that makes the target schema consistent with the source schema.

public Microsoft.SqlServer.Dac.Compare.SchemaCompareScriptGenerationResult GenerateScript (string databaseName, System.Threading.CancellationToken cancellationToken);
member this.GenerateScript : string * System.Threading.CancellationToken -> Microsoft.SqlServer.Dac.Compare.SchemaCompareScriptGenerationResult
Public Function GenerateScript (databaseName As String, cancellationToken As CancellationToken) As SchemaCompareScriptGenerationResult

Parameters

databaseName
String

The name of the target database.

cancellationToken
CancellationToken

cancellation token to cancel this operation

Returns

SchemaCompareScriptGenerationResult containing script

Exceptions

If the target is a dacpac and a null or empty databaseName value was provided.

Applies to