Advertisement
Guest User

Untitled

a guest
Sep 8th, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. String connectionString = "Data Source=servername;Initial Catalog=dbName;User id=user;Password=password;"
  2.  
  3. Connection conn = DriverManager.getConnection(connectionString);
  4.  
  5. Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
  6.  
  7. "jdbc:sqlserver://localhost:1433;user=name;password=password;database=dbName"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement