P Peter Lewis Well-Known Member Licensed User Longtime User Dec 16, 2025 #1 Hi, I have the following additional jar B4X: #AdditionalJar:mssql-jdbc-12.8.2.jre11 #AdditionalJar: HikariCP-5.0.1 then I am using Java jdk-19.0.2 To init the pool we are using B4X: Public pool As HikariCP pool.Initialize("com.microsoft.sqlserver.jdbc.SQLServerDriver",$"jdbc:sqlserver://${host}:${port};databaseName=${database}"$,user,password) with the following code starting sql B4X: Dim sql As SQL = pool.GetConnection The error code I am getting is as follows java.lang.RuntimeException: Failed to get driver instance for jdbcUrl=com.microsoft.sqlserver.jdbc.SQLServerDriver Click to expand... The .jar file is in the additional files folder and I cannot see what I have done wrong. Thank you
Hi, I have the following additional jar B4X: #AdditionalJar:mssql-jdbc-12.8.2.jre11 #AdditionalJar: HikariCP-5.0.1 then I am using Java jdk-19.0.2 To init the pool we are using B4X: Public pool As HikariCP pool.Initialize("com.microsoft.sqlserver.jdbc.SQLServerDriver",$"jdbc:sqlserver://${host}:${port};databaseName=${database}"$,user,password) with the following code starting sql B4X: Dim sql As SQL = pool.GetConnection The error code I am getting is as follows java.lang.RuntimeException: Failed to get driver instance for jdbcUrl=com.microsoft.sqlserver.jdbc.SQLServerDriver Click to expand... The .jar file is in the additional files folder and I cannot see what I have done wrong. Thank you
Bladimir Silva Toro Active Member Licensed User Longtime User Dec 22, 2025 #21 Hi, try using the JTDS driver; I think it works much better with any Microsoft SQL Server database. Download Link: https://sourceforge.net/projects/jtds/files/ Upvote 0
Hi, try using the JTDS driver; I think it works much better with any Microsoft SQL Server database. Download Link: https://sourceforge.net/projects/jtds/files/
virpalacios Active Member Licensed User Longtime User Dec 22, 2025 #22 Hi Peter, please keep us informed, I had a bad issue with new SQLServer version, it has some encription built in, try first as Bladimis says, Good Luck Best Regards Upvote 0
Hi Peter, please keep us informed, I had a bad issue with new SQLServer version, it has some encription built in, try first as Bladimis says, Good Luck Best Regards
P Peter Lewis Well-Known Member Licensed User Longtime User Dec 23, 2025 #23 Bladimir Silva Toro said: Hi, try using the JTDS driver; I think it works much better with any Microsoft SQL Server database. Download Link: https://sourceforge.net/projects/jtds/files/ Click to expand... Does it work with HikariCP ? Upvote 0
Bladimir Silva Toro said: Hi, try using the JTDS driver; I think it works much better with any Microsoft SQL Server database. Download Link: https://sourceforge.net/projects/jtds/files/ Click to expand... Does it work with HikariCP ?
Bladimir Silva Toro Active Member Licensed User Longtime User Dec 23, 2025 #24 Peter Lewis said: Does it work with HikariCP ? Click to expand... To useHikariCP con jTDS This involves configuring the HikariCP connection pool to use the jTDS JDBC driver (for SQL Server/Sybase) in your Java application It should work; you just need to test it and see if it works correctly. Upvote 0
Peter Lewis said: Does it work with HikariCP ? Click to expand... To useHikariCP con jTDS This involves configuring the HikariCP connection pool to use the jTDS JDBC driver (for SQL Server/Sybase) in your Java application It should work; you just need to test it and see if it works correctly.
P Peter Lewis Well-Known Member Licensed User Longtime User Dec 23, 2025 #25 Bladimir Silva Toro said: Hi, try using the JTDS driver; I think it works much better with any Microsoft SQL Server database. Download Link: https://sourceforge.net/projects/jtds/files/ Click to expand... I went to download the driver and found it is over 12 years old. I am trying to develop with latest drivers. Upvote 0
Bladimir Silva Toro said: Hi, try using the JTDS driver; I think it works much better with any Microsoft SQL Server database. Download Link: https://sourceforge.net/projects/jtds/files/ Click to expand... I went to download the driver and found it is over 12 years old. I am trying to develop with latest drivers.