• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

JForum 2.1.7 Beta: SqlServer-Support-Fixes

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am just testing the 2.1.7Beta against a SqlServer2005-DBMS and found (by now) the following problems:

the new dbtable-columns
jforum_users.user_notify_always
and jforum_users.user_notify_text
were missing in the sqlserver-config-files
sqlserver.sql
and sqlserver_db_struct.sql

Maybe the attached files could be integrated in the cvs-repository ...




[originally posted on jforum.net by xplane]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much. The files are in the cvs now.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Rafael,

but meanwhile i recognized the main problem with JForum and MS-SqlServer:

it's the ResultSet-Paging (via OFFSET, LIMIT) .........

By now all "paged"-selects do threw an exception !

I cannot understand, why the other users of jforum+sqlserver do not have this problem !?

I will try to change the sqlserver.sql to support resultset-paging .......



[originally posted on jforum.net by xplane]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To support the paging of SqlServer-resultsets I changed all "select*ByLimit"-statements in sqlserver.sql. According to these changes i had to modify some SqlServer DAO classes as well.
CAUTION: This implementation (SqlServer DAO classes and sqlserver.sql) is SqlServer2005 specific (because of ROW_NUMBER()) !!

The files i changed:

WEB-INF\config\database\sqlserver\sqlserver.sql
src\net\jforum\dao\sqlserver\SqlServerTopicDAO.java
src\net\jforum\dao\sqlserver\SqlServerUserDAO.java
src\net\jforum\dao\sqlserver\SqlServerPostDAO.java


[originally posted on jforum.net by xplane]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how about sql server2000

how to fix
[originally posted on jforum.net by kiemhao]
 
Shiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic