Share via


SchemaComparison Constructors

Definition

Overloads

SchemaComparison(String)

SchemaComparison constructor that uses a schema compare file (.scmp file) for all comparison settings. Only dacpac and/or database and/or sql project endpoints may be compared.

SchemaComparison(SchemaCompareEndpoint, SchemaCompareEndpoint)

SchemaComparison constructor that takes endpoints that specify the source and target for comparison.

SchemaComparison(String)

SchemaComparison constructor that uses a schema compare file (.scmp file) for all comparison settings. Only dacpac and/or database and/or sql project endpoints may be compared.

public SchemaComparison (string scmpFilePath);
new Microsoft.SqlServer.Dac.Compare.SchemaComparison : string -> Microsoft.SqlServer.Dac.Compare.SchemaComparison
Public Sub New (scmpFilePath As String)

Parameters

scmpFilePath
String

The path to a schema compare file (.scmp file)

Exceptions

If either the source or the target endpoint is not a database or a dacpac file or a sqlproj file.

Applies to

SchemaComparison(SchemaCompareEndpoint, SchemaCompareEndpoint)

SchemaComparison constructor that takes endpoints that specify the source and target for comparison.

public SchemaComparison (Microsoft.SqlServer.Dac.Compare.SchemaCompareEndpoint source, Microsoft.SqlServer.Dac.Compare.SchemaCompareEndpoint target);
new Microsoft.SqlServer.Dac.Compare.SchemaComparison : Microsoft.SqlServer.Dac.Compare.SchemaCompareEndpoint * Microsoft.SqlServer.Dac.Compare.SchemaCompareEndpoint -> Microsoft.SqlServer.Dac.Compare.SchemaComparison
Public Sub New (source As SchemaCompareEndpoint, target As SchemaCompareEndpoint)

Parameters

source
SchemaCompareEndpoint

A SchemaCompareEndpoint that refers to a schema source.

target
SchemaCompareEndpoint

An SchemaCompareEndpoint that refers to a target. Comparison will update the target to match the source.

Applies to