QTP uses VBScript language and the main way for VBS to connect to a database is using an ODBC (Open Database Connectivity) connection.
JDBC is a Java-based data access technology (Java Standard Edition platform) and is an API for the Java programming language that defines how a client may access a database. JDBC can be considered a version of ODBC for the Java programming language and can not be used with VBS unless a ODBC-JDBC bridge software package is used. I have not used any bridge package software in the past for VBS.
Recommend finding an ODBC driver that can be used to connect to the database so that VBS can be used.