Developer forum

Forum » Development » SQL Error after moving from SQL2000 to SQL2008

SQL Error after moving from SQL2000 to SQL2008


Reply
Hi

After upgrading a solution from running on a SQL2000 database, to SQL2008 i get this error from a Custommodule.
Any hints available ?
Where can i find the SQL statemen failing ?

An error occured while attaching module (Dynamicweb.Frontend.Content)

System.Data.SqlClient.SqlException: Incorrect syntax near ')'.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
   at CustomModules.NewsEdit.NewsEdit.NewsList_c(String MainTemplate_c, String RowTemplate_c)
   at CustomModules.NewsEdit.NewsEdit.NewsEdit(DataRow ParagraphRow, PageView Pageview)
   at CustomModules.CustomModuleHandler.GetCustomModule(Object sender, CustomModuleEventArgs e)
   at Dynamicweb.Frontend.Content.getModule(DataRow& ParagraphRow)

Replies

 
Reply
Hi

If you don't have access to the custom module source code, you should probably look in the SQL log.

 - Lasse

 

You must be logged in to post in the forum