We were following jdbc connection approach from below mentioned url.
SAP HANA Developer Guide for SAP HANA Studio - SAP Library
Below are driver and connection url
Driver : com.sap.db.jdbc.Driver
Connection Url: jdbc:sap://hostName:portNumber/?databaseName={databasename}
Note: Also we are appending username and password with this connection url
Issue: We are able to establish JDBC connection with HANA Database using invalid DB name.
Please give us suggestion about this issue.