Thanks for the package, I use it in all my websites build with Umbraco.
But when I install the latest version of this package in Umbraco 6.1.6 with SQL CE, I receive the following error message.
Error running NonQuery: SQL Statement: IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'icUrlTracker') AND NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'icUrlTracker' AND COLUMN_NAME = 'ForceRedirect') BEGIN ALTER TABLE [icUrlTracker] ADD ForceRedirect bit NOT NULL CONSTRAINT DF_icUrlTracker_ForceRedirect DEFAULT 0 END
Exception: System.Data.SqlServerCe.SqlCeException (0x80004005): There was an error parsing the query. [ Token line number = 1,Token line offset = 1,Token in error = IF ] at System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr) at System.Data.SqlServerCe.SqlCeCommand.CompileQueryPlan() at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options) at System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery() at SqlCE4Umbraco.SqlCeApplicationBlock.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlCeParameter[] commandParameters)
It appears that SQL CE does not support any procedural extensions at all...
Would you have any pointers as to how to tidy up after encountering this issue, just to make the back office work again? (e.g. DLLs to be removed, config settings to revert etc?)
Scrap that comment, I removed the DLL and that seems to have sorted it (unless you know of anything else that might cause trouble and should be removed?)
Error when installing with SQL CE
Hello,
Thanks for the package, I use it in all my websites build with Umbraco.
But when I install the latest version of this package in Umbraco 6.1.6 with SQL CE, I receive the following error message.
Error running NonQuery:
SQL Statement:
IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'icUrlTracker') AND NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'icUrlTracker' AND COLUMN_NAME = 'ForceRedirect')
BEGIN
ALTER TABLE [icUrlTracker] ADD ForceRedirect bit NOT NULL CONSTRAINT DF_icUrlTracker_ForceRedirect DEFAULT 0
END
Exception:
System.Data.SqlServerCe.SqlCeException (0x80004005): There was an error parsing the query. [ Token line number = 1,Token line offset = 1,Token in error = IF ]
at System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr)
at System.Data.SqlServerCe.SqlCeCommand.CompileQueryPlan()
at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options)
at System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery()
at SqlCE4Umbraco.SqlCeApplicationBlock.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlCeParameter[] commandParameters)
It appears that SQL CE does not support any procedural extensions at all...
Thanks,
Wesley Herpoelaert
Hmmm that's nasty...
Need to have a good look at this, so can't promise anything.
Hi Stefan,
Would you have any pointers as to how to tidy up after encountering this issue, just to make the back office work again? (e.g. DLLs to be removed, config settings to revert etc?)
Umbraco 7.0.2, urlTracker 2.5.1, sqlCe.
Thanks
Scrap that comment, I removed the DLL and that seems to have sorted it (unless you know of anything else that might cause trouble and should be removed?)
Removing the DLL is fixes this issue indeed. Or you could create the icUrlTracker table manually.
Have you found a solution to this problem?
There is a new PR which should add compatibility with SQL CE, but I still need to review it, accept it and release a new version.
Hi,
I am stucked after trying to install package on sql ce. Any fix/sugestion.
Thanks.
Here's a suggestion; read the posts above?!
Thanks for quick reply. I have been looking at git. But do not quite understand what to do...
Thanks
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.