Difference between revisions of "Database Connectivity"

From PresenceWiki
Jump to: navigation, search
Line 5: Line 5:
 
When connectiong to Access you can use the ODBC drivers
 
When connectiong to Access you can use the ODBC drivers
  
 +
Driver class
 
use the sun.jdbc.odbc.JdbcOdbcDriver
 
use the sun.jdbc.odbc.JdbcOdbcDriver
  
 +
Connection URL
 
jdbc:odbc:yourdsn
 
jdbc:odbc:yourdsn
  
Line 14: Line 16:
  
 
SQL Server
 
SQL Server
 +
 +
Driver class
 +
com.microsoft.sqlserver.jdbc.SQLServerDriver
 +
 +
Connection URL
 +
jdbc:sqlserver://ServerName:1433:databaseName=MyDatabase;
  
 
Presence Version 3.5.4 uses the java 1.5 JVM. The jars for this can be downloaded from:-
 
Presence Version 3.5.4 uses the java 1.5 JVM. The jars for this can be downloaded from:-

Revision as of 17:02, 30 December 2009

Database Connectivity

Access

When connectiong to Access you can use the ODBC drivers

Driver class use the sun.jdbc.odbc.JdbcOdbcDriver

Connection URL jdbc:odbc:yourdsn

In windows, create a dsn by ODBC Data Source Administrator System DSN name (in this case yourdsn)

SQL Server

Driver class com.microsoft.sqlserver.jdbc.SQLServerDriver

Connection URL jdbc:sqlserver://ServerName:1433:databaseName=MyDatabase;

Presence Version 3.5.4 uses the java 1.5 JVM. The jars for this can be downloaded from:-

sqljdbc.jar

then added via the jar manager which should point to

Presence Version 3.5.5 uses the java 1.6 JVM. Because of this, if you are using SQLServer connections you will need to use the appropriate jars:-

sqljdbc4.jar

then added via the jar manager which should point to