Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The uPortal build.properties will need to be modifed. Find the property called jdbcDriver and change it to point to the MSSQL jar file, for example:

Code Block

jdbcDriver.jar=./lib/jtds.jar 

rdbm.properties

The uPortal rdbm.properties file (in the properties directory) needs to modified to specify the driver properties. The rdbm.properties file contains several sample entries. Uncomment (or add) the lines for the MSSQL database and make whatever changes necessary to match your local database installation, For example:

Code Block

#### Microsoft SQL Server

...


jdbcDriver=net.sourceforge.jtds.jdbc.Driver

...


jdbcUrl=jdbc:jtds:sqlserver://replaceWithServerName:1433;SelectMethod=cursor

...

 
jdbcUser=replaceWithUsername

...

 
jdbcPassword=replaceWithPassword

dbloader.xml

This file is used by the DbLoader tool to create the uPortal database tables and populate the database. It contains several sample entries which create db-type-mappings for different databases. Find the tags for an HypersonicSQL database and modify the db-version, driver-name, and driver-version as necessary. For example:

Code Block

  <db-type-mapping>

...


    <db-name>Microsoft SQL Server</db-name>

...


    <db-version>8.00.760</db-version>

...


    <driver-name>net.sourceforge.jtds.jdbc.Driver</driver-name>

...


    <driver-version>1.0.3</driver-version>

...


    <type><generic>INTEGER</generic><local>INTEGER</local></type>

...


    <type><generic>VARCHAR</generic><local>VARCHAR</local></type>

...


    <type><generic>TEXT</generic><local>TEXT</local></type>

...


    <type><generic>TIMESTAMP</generic><local>DATETIME</local></type>

...


    <!-- map more types here -->

...


  </db-type-mapping>

PersonDirs.xml

This file is used if the database is to be used to provide user directory information

Code Block

    <!-- JDBC Properties -->

...


        <driver>net.sourceforge.jtds.jdbc.Driver</driver>

...


     <url>jdbc:jtds:sqlserver://replaceWithServerName:1433/Depot;SelectMethod=cursor</url>

...


        <logonid>replaceWithUsername</logonid>

...


        <logonpassword>replaceWithPassword</logonpassword>

...

 
        <uidquery>SELECT FIRST_NAME + ' ' + LAST_NAME AS FIRST_LAST, FIRST_NAME, LAST_NAME, EMAIL FROM UP_PERSON_DIR WHERE USER_NAME=?</uidquery>

Load the database

Create the database: Refer to the Microsoft SQL Server database documentation for instructions regarding how to create an MSSQL database instances. The database name, port number, and driver information must reflect what was defined in the rdbm.properties file.

...