antlr.NoViableAltException in RedGate.SQLCompare.ASTParser
RedGate.SQLCompare.Engine.Database.Register(sourcePath, null, Options.Default);-OR
RedGate.SQLCompare.Engine.Database.RegisterForDataCompare(sourcePath, null, Options.Default);The effort to perform this takes a very long time, and produces this message about once every tick:
This message is also occassionally produced:Exception thrown: 'antlr.NoViableAltException' in RedGate.SQLCompare.ASTParser.dll
Exception thrown: 'antlr.MismatchedTokenException' in RedGate.SQLCompare.ASTParser.dll
I'm aware of the null insertion for the optional parameter ScriptDatabaseInformation dbinfo, because this is a database that is stored locally and created using SQL Source Control, it contains a valid xml file. We have been using SQL Source Control and the Comparison SDK for a number of years now.
Our application which uses the Comparison SDK is able to register a database stored on source control in less than a minute. However, registering a local one while debugging in VS takes upward of 30 minutes. SQL Compare through the GUI does not have this issue. This occurs both when the application uses Comparison SDK 11 and 12.