I've found this question before but none of the answers work for me!
public static void main(String[] args) throws ClassNotFoundException, SQLException {
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
String
connectionURL="jdbc:sqlserve:z/localhost:1433;databaseName=isTaskDB;user=is;password=1234";
Connection con =DriverManager.getConnection(connectionURL);
System.out.println("done");
}
I get this error:
Exception in thread "main" java.sql.SQLException: No suitable driver found for jdbc:sqlserve:z/localhost:1433;databaseName=isTaskDB;user=is;password=1234 at java.sql.DriverManager.getConnection(DriverManager.java:689) at java.sql.DriverManager.getConnection(DriverManager.java:270) at is_prog_task.Is_prog_task.main(Is_prog_task.java:26) Java Result: 1
why??