SchemaComparison Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.