Hi Daiya •,
Check below please:
- Difference Drivers If we use JDBC URL format for the jTDS driver, but use sqljdbc4.jar in CLASSPATH, we will wind up with the “No suitable driver found” error for SQL Server Database.
- Wrong JDBC Driver Name Including “Microsoft” in JDBC URL for SQL SERVER while using sqljdbc4.jar file to connect to the MSSQL database will result in the error.
- Spelling errors in Driver Name Using inaccurate names in the JDBC URL also results in the “No suitable driver found” error.
- jTDS vs JDBC Drive Using jTDS driver in the development environment while using the Microsoft JDBC driver (sqljdbc4.jar) in the production environment also causes the error.
Your URL should be jdbc:sqlserver://server:port;DatabaseName=dbname
and Class name should be like com.microsoft.sqlserver.jdbc.SQLServerDriver
Please let us know your result.
Thanks.