Sql Compare 10 doesn't produce any errors
Saurin
Posts: 5
I have been using SQL Compare 10 recently upgraded from 8 to 10 version and I have found that 10 doesn't produce any errors.
Does anybody has same issue like me? Sql Compare 8 was producing errors each time unlike Sql Compare 10.
Further, I am using Command as shown below.
"d:\Program Files (x86)\Red Gate\SQL Compare 10\SQLCompare.exe" /server1:tcp:ServerName /database1:Database1 /makescripts:d:\Temp\Database1 /options:CaseSensitiveObjectDefinition /force
Does anybody has same issue like me? Sql Compare 8 was producing errors each time unlike Sql Compare 10.
Further, I am using Command as shown below.
"d:\Program Files (x86)\Red Gate\SQL Compare 10\SQLCompare.exe" /server1:tcp:ServerName /database1:Database1 /makescripts:d:\Temp\Database1 /options:CaseSensitiveObjectDefinition /force
Comments
Please somebody helps. Thanks in advance.
thank you for your forum post.
I suspect you mean doesn't produce any comparison results or create a scripts folder, am I correct?
Please try adding the include switches to your syntax, based upon your command:
Further information on the available switches in the command line can be found in this HELP article.
Otherwise, please reply regarding the difference you have found between V8 and V10 of the SQL Compare Command Line.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
It does produce comparing results or create scripts folder when database is available. Generally it shows OK response back from command line if scripts generated correctly.
What if there is something going on at database side like database is not available because of restoring or something like network hiccup or database issue. SqlCompare should produce Error with cause.
Sql compare 8 used to produce errors if it fails, but Sql compare 10 doesn't produce any errors even though database is not available.
What I am expecting here is some kind of Errors as and when Sql scripts doesn't generate script folder. What I have noticed, it doesn't generate scripts folders and responded as OK instead of Error from command line.
some of the errors shown below with Sql Compare 8
Unexpected error: Specified cast is not valid.
Error: Error occurred connecting to database:
Unexpected error: Object reference not set to an instance of an object.
Object reference not set to an instance of an object.System.NullReferenceException
at o.u()
at o.a(n )
at RedGate.SQLCompare.Engine.Database.Register(ConnectionProperties connectionProperties, Options options)
at o.a(LiveDatabaseSource )
at o.a(Int32 )
at o.a(String )
at RedGate.SQLCompare.CommandLine.CommandProcessor.b()
at RedGate.SQLCompare.CommandLine.CommandProcessor.Run()
at RedGate.SQLCompare.CommandLine.Startup.a(String[] )
I hope, It explains.
Thanks,
Saurin
Thanks much in advance.
-Saurin
Thank you for your reply. Sadly I am unable to replicate your fault symptoms.
Using SQL Compare V10.4.8.87, I ran command line code to create a snapshot of a test database called GenerationX.
To ensure that my syntax is OK, I ran my code which successfully created a snapshot file.
To simulate failure, I took the test database off-line and repeated the command line code which generated an error indicating a log-in failure: Next created a batch file and added the /LogLevel:Verbose switch which creates a log file. The log file generated contains the above information.
Please try adding /LogLevel switch to your syntax so it becomes:
Do you now see error messages and exit codes?
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com