Need to know how to code the CompareWith method in v13.3.5.6244 after upgrading from v11.1.2.54
Horizon67
Posts: 7 New member
in SQL Compare
Prior to Upgrading to v13.3.5.6244 we had been running v11.1.2.54 and the code below worked fine but now running into the "'CompareWith' is ambiguous because multiple kinds of members with this name exist in class 'RedGate.SQLCompare.Engine.Database" error when trying to recompile on latest version. The last line where "SourceDatabase.CompareWith" is called is throwing the error.
Dim sqlCompareOptions As RedGate.SQLCompare.Engine.Options
sqlCompareOptions = Options.Default.Plus(Options.IgnoreUsers, Options.Default, Options.IgnorePermissions)
targetDatabase = New RedGate.SQLCompare.Engine.Database()
'targetDatabase.Status = AddressOf Me.ShowProgressHandler
' Register the database
_currentUpdateStep = 1
ShowProgressHandler(Me, New RedGate.Shared.Utils.StatusEventArgs(oneHundredPercent))
targetDatabase.Register(New ConnectionProperties(_connectionStringParts.ServerName, _connectionStringParts.DatabaseName, _connectionStringParts.UserName, _connectionStringParts.Password), sqlCompareOptions)
sourceDatabase = New RedGate.SQLCompare.Engine.Database()
'sourceDatabase.Status = AddressOf Me.ShowProgressHandler
_currentUpdateStep = 2
sourceDatabase.LoadFromDisk(unzippedFileName)
ShowProgressHandler(Me, New RedGate.Shared.Utils.StatusEventArgs(oneHundredPercent))
_currentUpdateStep = 3
Dim databaseDifferences As Differences = sourceDatabase.CompareWith(targetDatabase, sqlCompareOptions)
Tagged:
Answers
If you've just copied the DLLs from SQL Compare then we don't support this. There is no longer a public API and there will be breaking changes such as the one you have experienced.
Redgate Software
Redgate Software