Error in the Log file and Sync does not work for some DB Tab
fstanzini
Posts: 4
Running the following Command from a batch file:
"C:\Program Files (x86)\Red Gate\SQL Data Compare 9\sqldatacompare" /project:"U:\Upload Projects\Uploads\Puritan_WASHECPDB01.sdc" /scriptfile:"U:\uploads\Puritan_QA_WASHECPDB01.sql" /synchronize /verbose /out:"U:\UploadLog\Puritan_QA_WASHECPDB01.Log" /FORCE
After executing this I get the following written to the Log File
Serial Number: 001-001-146654-78F7
Loading synchronization parameters from project file: U:\Upload Projects\Uploads\Puritan_WASHECPDB01.sdc
OK
Comparing database QADB01.Puritan with database WASHECPDB01.Puritan...
Registering databases
Mapping
Comparing databases
Error: Object reference not set to an instance of an object.
If I run the SDC file via the Redgate gui it works fine and syncs the files. What could be wrong with the Script?
"C:\Program Files (x86)\Red Gate\SQL Data Compare 9\sqldatacompare" /project:"U:\Upload Projects\Uploads\Puritan_WASHECPDB01.sdc" /scriptfile:"U:\uploads\Puritan_QA_WASHECPDB01.sql" /synchronize /verbose /out:"U:\UploadLog\Puritan_QA_WASHECPDB01.Log" /FORCE
After executing this I get the following written to the Log File
Serial Number: 001-001-146654-78F7
Loading synchronization parameters from project file: U:\Upload Projects\Uploads\Puritan_WASHECPDB01.sdc
OK
Comparing database QADB01.Puritan with database WASHECPDB01.Puritan...
Registering databases
Mapping
Comparing databases
Error: Object reference not set to an instance of an object.
If I run the SDC file via the Redgate gui it works fine and syncs the files. What could be wrong with the Script?
Fabio
Comments
"C:\Program Files (x86)\Red Gate\SQL Data Compare 9\sqldatacompare"
/project:"U:\Upload Projects\Uploads\Puritan_WASHECPDB01.sdc"
/scriptfile:"U:\uploads\Puritan_QA_WASHECPDB01.sql"
/synchronize
/verbose
/out:"U:\UploadLog\Puritan_QA_WASHECPDB01.Log"
/FORCE
I added carrage retures so you can see the entire script
Thanks in advance for your help.
What sources does your project use? Is it a database on both sides, or is one side of your comparison a set of script folders?
Redgate Software
If I run this via the gui it works fine but from the Command line, the SQL file is not created and we get the error message in the log file.
We migrated these scripts from a Ver 7 redgate install and updated the data to point to the new directories on the new server and changed the version number in the command line to be 9 instead of 7.
Was wondering if there was a command line switch that is either missing or now required in version 9
Thanks
If possible, mail support@red-gate.com directly, quoting F0046446 in the subject line.
Redgate Software
http://www.red-gate.com/MessageBoard/viewtopic.php?p=47872
Redgate Software