I need help with connecting SQL server and Java. I've added the jdbc driver in eclipse but keep getting this error. Still pretty new to java and SQL server so any help, tips, suggestions would greatly be appreciated. Here is the code I'm using. Not sure if it matters but I'm using SQL Server 2014.
import java.sql.*;
public class DBTest {
public static void main(String[] args) throws SQLException, ClassNotFoundException{
String dbUrl = "jdbc:microsoft:sqlserver://MACBOOK\\SQLEXPRESS:1433;DatabaseName=ConnectionTest";
String user = "testing";
String pass = "test";
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
Connection myConn = DriverManager.getConnection(dbUrl, user, pass);
}
}