Connecting using the JDBC Driver Manager
- Last Updated: May 13, 2025
- 1 minute read
- DataDirect Connectors
- JDBC
- SAP HANA 6.0
- Documentation
One way to connect to a service is through the JDBC DriverManager using the DriverManager.getConnection() method. As the following examples
show, this method specifies a string containing a connection URL.
User ID and password authentication
Connection conn = DriverManager.getConnection
("jdbc:datadirect:saphana://MyServer:30015;User=JSmith;Password=secret;");
Note: See User ID/password authentication for details.