System.NullReferenceException while parsing scripts
jalbert
Posts: 18
I'm trying out SQL Compare 6 and have run into a problem with the new scripts feature. We're investigating how we can integrate SQL Compare into our build process. I'm wondering if someone else has experienced this or can offer some insight. When comparing scripts with a blank destination database, I get this:
X Registering databases
Scripts.Create Scripts-Reading xUsers.sql
Object reference not set to an instance of an object.
The file "xUsers.sql" exists, and contains this:
The T-SQL in question, while trivial, is valid. Yet SQL Compare 6 seems to choke on it when parsing it. Thanks in advance!
X Registering databases
Scripts.Create Scripts-Reading xUsers.sql
Object reference not set to an instance of an object.
The file "xUsers.sql" exists, and contains this:
CREATE TABLE dbo.xUsers ( UserId INT )
The T-SQL in question, while trivial, is valid. Yet SQL Compare 6 seems to choke on it when parsing it. Thanks in advance!
Comments
If there's nothing obviously wrong of this nature, or you are reading scripts that were generated by Compare in the first place, tell me and I'll investigate further.
Redgate Software
With that in mind, it would be very helpful for SQL Compare 6 to show which table(s)/view(s) it choked on, rather than just pass the NullReferenceException to the user. Thank you for considering this enhancement.
Redgate Software