Function documentationSAP MaxDB JDBC Driver Locate this document in the navigation structure

 

With the SAP MaxDB JDBC driver, you can execute SQL statements in SAP MaxDB databases from within Java applications.

Properties of the SAP MaxDB JDBC driver:

  • 100 percent pure Java

  • Supports the JDBC 2.0 Standard Extension API (DataSource, XADataSource, and ConnectionPoolDataSource)

  • Type 4 driver (connection to the database is established using the SAP MaxDB-specific network protocol)

SAP MaxDB JDBC Driver: Java Classes

Class

Description

com.sap.dbtech.jdbc.DriverSapDB

JDBC Driver

com.sap.dbtech.powertoys.jdbc.exception.*

Error handling

com.sap.dbtech.jdbcext.DataSourceSapDB

Classes for the JDBC 2.0 Standard Extension

The SAP MaxDB JDBC driver Java classes are contained in the <installation_path>\runtime\jar\sapdbc.jar file.

Note Note

You can display the installation path using the dbm_getpath DBM command:

dbmcli dbm_getpath InstallationPath

For more information, see Database Manager CLI, dbm_getpath.

End of the note.

Example Example

C:\Program Files\sdb\Installation_2009-07-21\runtime\jar\sapdbc.jar

End of the example.

Prerequisites

  • You have installed a Java platform:

    • For JDBC 2.0: JRE 1.2 or JDK 1.2 (for application development)

    • For JDBC 3.0: JRE 1.4, 1.5 or JDK 1.4, 1.5 (for application development)

  • You have installed the SAP MaxDB JDBC Driver.

    More information: Installing the SAP MaxDB JDBC Driver and Java Classes