The most reliable and high-performance solution is to bypass ODBC entirely and use a native JDBC driver provided by the database vendor. Download - JDBC Driver for SQL Server - Microsoft Learn
Starting with Java 8, Oracle officially removed the ( sun.jdbc.odbc.JdbcOdbcDriver ) from the Java Runtime Environment (JRE). This removal means that if you try to use the bridge in Java 8, you will encounter a java.lang.ClassNotFoundException . download jdbc odbc driver for java 8
To maintain connectivity to databases that previously relied on this bridge (such as Microsoft Access), you must either use a third-party bridge, switch to a native Type 4 JDBC driver, or manually port the bridge from an older Java version. 1. Recommended: Use a Pure JDBC Driver (Type 4) The most reliable and high-performance solution is to