When JDBC connect to HANA via DriverManager.getConnection, it doesn't work. Following is the sample connection URL:
Connection connection = DriverManager.getConnection("jdbc:sap://xxxxx.xxxx.xxxx.com:xxx/?encrypt=true&user=TESTuser&password='Pass&word'")
The password contains character '&'
SAP HANA, platform edition
DriverManager.getConnection, JDBC, password, '&' , KBA , HAN-DB-CLI , SAP HANA Clients (JDBC, ODBC) , How To
About this pageThis is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).
Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.