robthomas09
asked on
Java - database connection issue, setting the jdbc class path
Hello experts<
I try to connect to my data base with the following:
var dbConn = DatabaseConnectionFactory. createData baseConnec tion ('com.microsoft.sqlserver. jdbc.SQLSe rverDriver ','jdbc:sq lserver:// localhost: 1433;datab aseName=ng test;','de fault','## ###');
and ge the error:
Wrapped java.sql.SQLException: No suitable driver found for jdbc:sqlserver://localhost :1433;data baseName=n gtest
REsearching a bit tells me to set the path correctly in the class file, but are not sure how to do that. Thoughts?
Thanks in advance!
I try to connect to my data base with the following:
var dbConn = DatabaseConnectionFactory.
and ge the error:
Wrapped java.sql.SQLException: No suitable driver found for jdbc:sqlserver://localhost
REsearching a bit tells me to set the path correctly in the class file, but are not sure how to do that. Thoughts?
Thanks in advance!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You're welcome! Thanks for the points!
ASKER