RegisterForDataCompare with ScriptFolderPath is in what SDK?
ccollins
Posts: 64
// NOTE - always pass null for Script Database Information in Data Compare (will read script settings from the xml file in the folder)
430. dScriptFolder.RegisterForDataCompare(sScriptFolderPath, null, Options.Default);
I only have one overload with my SDK8. It wants connectionproperties or connectionproperties with options, I don't have one that I can pass a path to.
According to the release notes SDK8 can data compare a live database to scripts. Am I missing an update maybe?
430. dScriptFolder.RegisterForDataCompare(sScriptFolderPath, null, Options.Default);
I only have one overload with my SDK8. It wants connectionproperties or connectionproperties with options, I don't have one that I can pass a path to.
According to the release notes SDK8 can data compare a live database to scripts. Am I missing an update maybe?
Comments
There is a good example you can use for scripts folders here.
C:\Program Files (x86)\Red Gate\SQL Comparison SDK 8\Assemblies\SQL Data CompareRedGate.SQLCompare.Engine.dll v7.1.0.182
RedGate.SQLDataCompare.Engine.dll v7.1.0.230
The build fails:
\StaticDataWithScriptsExample.cs(325,21): error CS0246: The type or namespace name 'ScriptDatabaseInformation' could not be found (are you missing a using directive or an assembly reference?)
\StaticDataWithScriptsExample.cs(325,76): error CS0246: The type or namespace name 'ScriptDatabaseInformation' could not be found (are you missing a using directive or an assembly reference?)
\StaticDataWithScriptsExample.cs(327,65): error CS0103: The name 'ScriptEncodingType' does not exist in the current context
\StaticDataWithScriptsExample.cs(328,21): error CS1502: The best overloaded method match for 'RedGate.SQLCompare.Engine.Database.SaveToFolder(string, RedGate.SQLCompare.Engine.ReadFromFolder.WriteToFileOptions)' has some invalid arguments
\StaticDataWithScriptsExample.cs(328,67): error CS1503: Argument '2': cannot convert from 'ScriptDatabaseInformation' to 'RedGate.SQLCompare.Engine.ReadFromFolder.WriteToFileOptions'
\StaticDataWithScriptsExample.cs(367,39): error CS0117: 'RedGate.SQLCompare.Engine.ReadFromFolder.FolderDataSource' does not contain a definition for 'DoesDatabaseInformationFileExist'
\StaticDataWithScriptsExample.cs(416,21): error CS1501: No overload for method 'RegisterForDataCompare' takes '3' arguments
c:\Program Files (x86)\Red Gate\SQL Comparison SDK 8\Assemblies\SQL Data Compare\RedGate.SQLCompare.Engine.dll: (Related file)
\StaticDataWithScriptsExample.cs(480,30): error CS0117: 'RedGate.SQLDataCompare.Engine.SqlProvider' does not contain a definition for 'Synchronize'
Compile complete -- 8 errors, 0 warnings
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
The example continues failing to build.