Difference between revisions of "SQL Server - OpenKM 5.0"

From OpenKM Documentation
Jump to: navigation, search
Line 26: Line 26:
 
  okm_app
 
  okm_app
  
Start SQL Server Management Studio and create the two databases. Select your appropiate database collate.
+
[http://www.microsoft.com/downloads/details.aspx?FamilyID=c243a5ae-4bd1-4e3d-94b8-5a0f62bf7796&DisplayLang=en Start SQL Server Management Studio Express] and create the two databases. Select your appropiate database collate.
  
 
[[file:Mssql1.jpg|center]]
 
[[file:Mssql1.jpg|center]]

Revision as of 14:53, 23 October 2010


Nota clasica.png This configuration has been tested with Microsoft SQL Server 2005 and Microsoft SQL Server 2005 express edition.

Download MS SQLServer JDBC driver from MS SQLServer Home Page and move it to $JBOSS_HOME/server/default/lib.


Nota clasica.png Other JDBC driver for MS SQLServer we've tested is jdts.

In this OpenKM release you can create the databases automatically configuring the hibernate.dialect and hibernate.hbm2ddl properties in OpenKM.cfg.

hibernate.dialect=org.hibernate.dialect.SQLServerDialect
hibernate.hbm2ddl=create

Once the tables are created, change the hibernate.hbm2ddl property from create to none.


Nota advertencia.png This configuration property should be set before the database creation. Once the database has been initialized don't modify it because can damage your installation. If your OpenKM installation has been already configured with another database (default one is an embedded one called HSQL) you can't switch to another database simply changing this property.

More info about this at:

Database creation

Starting with OpenKM 5.0, only two databases are needed:

okm_repo
okm_app

Start SQL Server Management Studio Express and create the two databases. Select your appropiate database collate.

Mssql1.jpg


Mssql2.jpg

Solving some hibernate creation problems