我想参数化gmail登录脚本,为此我试图从数据库(sql server)获取数据,但是当我运行代码时得到以下错误:什么是通过jdbc连接到sql server数据库的正确连接字符串
Exception in thread "main" java.sql.SQLException: No suitable driver found for jdbc:sqlserver://localhost/hrm
,我路过的连接字符串如下:
Connection cn=DriverManager.getConnection("jdbc:sqlserver://localhost/hrm","sa","a1");
请帮助。
的可能的复制[如何解决: “找到JDBC没有合适的驱动程序的:mysql://本地主机/ DBNAME”?使用池的时候,错误](http://stackoverflow.com/questions/5556664/how-to-fix-no-suitable-driver-found-for-jdbcmysql -localhost -dbname-error -w) –