*
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
Author

SQL

Migrated From Jforum.net
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.

2.java.sql.SQLException: Implicit conversion from data type nvarchar to varbinary(max) is not allowed. Use the CONVERT function to run this query.

3.java.sql.SQLException: Incorrect syntax near 'LIMIT'.

4.java.sql.SQLException: Ambiguous column name 'post_id'.

[originally posted on jforum.net by vpellicano]
Migrated From Jforum.net
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 jforum.net by monroe]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SQL