Competition: What’s your favorite Redgate tool? Enter now.

"Specified cast is not valid." in "RedGate.SQLCompare.Engine''

at RedGate.SQLCompare.Engine.ReadFromBackup.SCCommentPopulator.__SCSCTCFunction.RedGate.SQLCompare.Engine.ReadFromBackup.TableDefinitionComponents.ITCFunction.GetValue(TableDefinitionComponents tdc, Object[] args, Boolean& saveMe)
at RedGate.SQLCompare.Engine.ReadFromBackup.SCBindableBase.RedGate.SQLCompare.Engine.ReadFromBackup.IBindable.Bind(TableDefinition tblDefn, IDictionary`2 dict)
at RedGate.SQLCompare.Engine.ReadFromBackup.DatabaseHelperResultSetQueryer.Read()
at RedGate.SQLCompare.Engine.Registration.QueryResult.QueryResult.CreateFrom[T](ICancellationStatus status, DatabaseHelperResultSet resultSet, Func`2 resultBuilder)
at RedGate.SQLCompare.Engine.Registration.ModelFactory.DatabaseFactory.PopulateObjectText(DBPopulationOptions popOptions, Boolean isForDataCompare)
at RedGate.SQLCompare.Engine.Registration.ModelFactory.DatabaseFactory.Populate(DBPopulationOptions popOptions)
at RedGate.SQLCompare.Engine.Registration.ModelFactory.DatabaseFactory.RegisterFromFactory(Database database, Options options, Boolean includeViewColumnDetails, DatabaseFactory databaseFactory, String databaseName)
at RedGate.SQLCompare.Engine.Registration.ModelFactory.DatabaseFactory.RegisterFromBackup(Database database, String connectionString, Options options, IDmvModelFactory dmvModelFactory, Boolean includeViewColumnDetails)
at RedGate.SQLCompare.Engine.Database.<>c__DisplayClass110_0.<Register>b__0()
at RedGate.SQLCompare.Engine.Utils.GetTimeToRun(Action action)
at RedGate.SQLCompare.Engine.Database.Register(ConnectionProperties connectionProperties, Options options, IDmvModelFactory factory)
at SQLCompareCodeSnippets.CompareBackupExample.Run() in
C:\C#\C#\CompareBackupExample.cs:line 87
at SQLCompareCodeSnippets.Program.ComparisonExamples() in C:\C#\C#\Program.cs:line 303
at SQLCompareCodeSnippets.Program.Main() in C:\C#\C#\Program.cs:line 154
Sign In or Register to comment.