SQLCompare Errors
BJ
Posts: 12
Let me start off by saying I inherited this current process, so I am at a total disadvantage. What I do know:
we are creating a new db, then using syncronize to make them the same before replicating to the new db.
Assembly Version = 1.0.1.18
using commandline utility, not the GUI
all sp's, views, fn's are accounted for in the log before it gets the null reference exception
my cmd string is (i have replaced names in the string)
We have recently upgraded to SQLServer 2005, and now the synchronize process is no longer working. We are getting a null reference exception. This does not happen in 2000, with the same .bak file.
I tried to d/l the latest version for the 14 day trial, but when i run the same command, i get the error:
At this point I am more than willing to look into ANY suggestions or ideas. As I mentioned earlier, I inherited this, and am still trying to learn it, since it was working earlier, I didn't need to mess with it.
Thank you,
bj
we are creating a new db, then using syncronize to make them the same before replicating to the new db.
Assembly Version = 1.0.1.18
using commandline utility, not the GUI
all sp's, views, fn's are accounted for in the log before it gets the null reference exception
my cmd string is (i have replaced names in the string)
utils\SQLCompare.exe /out:utils\SQLCompare.log /force /server1:Server1Name /database1DB1name /username1:DB1UserName /password1:DB1UserPW /server2:Server2Name /database2:Server2DBName /username2:Server2UserName /password2:Server2UserPW /synchronize /options:IncludeDependencies,IgnoreTriggers
We have recently upgraded to SQLServer 2005, and now the synchronize process is no longer working. We are getting a null reference exception. This does not happen in 2000, with the same .bak file.
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 RedGate.SQLCompare.CommandLine.CommandProcessor.GetComparisonExecutionBlock()
at RedGate.SQLCompare.CommandLine.CommandProcessor.ᐄ()
at RedGate.SQLCompare.CommandLine.CommandProcessor.Run()
at RedGate.SQLCompare.CommandLine.Startup.ᐁ(String[] )
I tried to d/l the latest version for the 14 day trial, but when i run the same command, i get the error:
Error: Exception of type '_3' was thrown.
At this point I am more than willing to look into ANY suggestions or ideas. As I mentioned earlier, I inherited this, and am still trying to learn it, since it was working earlier, I didn't need to mess with it.
Thank you,
bj
Comments
I'm curious to know what happens if you run SQL Compare (the user-interface version) to compare the two databases? Are any exceptions thrown by the UI program that are more meaningful?
We have many identity columns, why would this error just now be showing? this table and stored procedure hasn't been changed since Jan '06? Does SQLServer 2005 have more stringent checks than 2000 in this area? Or is this something I can correct through SQLCompare?
thank you,
bj
now, i have gotten to the point where the sync will work with the gui, but i am still on the same null reference error on the command line. any thoughts on the difference?
note: the ui is a much later version. I am guessing herein lies the problem. However, when i try to run the cmd line of the new version i get the aformentioned error(post 1)
bj
I have to say, our error message is completely useless. In order to find the problem, we'd either need 1. a copy of the databases in question to reproduce the problem, or 2. a crash dump of the application (would require that you know how to use a debugger).
I can't send our db for several reasons, but I did narrow the problem down to a specific area. Functions. I created a new db with no data, 2 tables, and 1 function. I get the same error on this db. Here is the function I used.
I can also send a script of the db if you prefer.
Thanks!
sure was! sorry about that.
3.1.9.12
good news though. while waiting for your reply, I a version 5 SQLBundle on the server, and everything worked great. I believe I am passed the problems I was having. If the testing over the next week goes correctly, we will be upgrading our old to the new.
thank you very much for your help. I am hoping it was just the old version, as it seems now!
bj