Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
- String connectionUrl = "jdbc:sqlserver://UTILIZADOR-PC\\SQLEXPRESS;user=sa;password=bd2015;databaseName=DBProject;";
- Connection con = DriverManager.getConnection(connectionUrl);
- Statement stmt = null;
- ResultSet rs = null;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement