File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JForum and the fly likes SQL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "SQL" Watch "SQL" New topic


Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I am running into alot of errors trying to get this forum to run off sql 2005, does anyone have updated files that they can share that would fix all the problems. Thanks.

1. java.sql.SQLException: Cannot insert explicit value for identity column in table 'jforum_forums_watch' when IDENTITY_INSERT is set to OFF. Implicit conversion from data type nvarchar to varbinary(max) is not allowed. Use the CONVERT function to run this query. Incorrect syntax near 'LIMIT'. Ambiguous column name 'post_id'.

[originally posted on by vpellicano]
Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
MS SQL support has always been problematic.. mostly because MS hasn't supported LIMIT and OFFSET functionality. Until SQL 2005 supplied some stuff similar to this (but not identical). To be fair, AFAIK, LIMIT and OFFSET are "defacto" standards (supported by every other major DB...) and not really part of the SQL "standard" doc.

Because of this, jForum 2.1.8 is the first version to include MS SQL 2005 support in it. This is basically a "beta" version and still has bugs.

That said, I don't think anyone has put together a single comprehensive post on how to fix all the bugs. (Care to volunteer?) But there are solutions posted in the forums. You just have to search for them.
[originally posted on by monroe]
I agree. Here's the link:
subject: SQL
It's not a secret anymore!