I am trying to parameterize gmail login script, for which I am trying to fetch data from database(sql server), but when I run the code am getting the following error:
Exception in thread "main" java.sql.SQLException: No suitable driver found for jdbc:sqlserver://localhost/hrm
The connection string that I am passing is as follows:
Connection cn=DriverManager.getConnection("jdbc:sqlserver://localhost/hrm","sa","a1");
Please help.