Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String connectionString = "Data Source=servername;Initial Catalog=dbName;User id=user;Password=password;"
- Connection conn = DriverManager.getConnection(connectionString);
- Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
- "jdbc:sqlserver://localhost:1433;user=name;password=password;database=dbName"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement