Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Not able to connect local instance of SQL Server 2008 in a Java program
- Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
- String connectionUrl = "jdbc:sqlserver://localhost:1433;" +
- "databaseName=sis;user=sample;password=sample;";
- connection = DriverManager.getConnection(connectionUrl);
- netsh firewall set portopening protocol = TCP port = 1433
- name = SQLPort mode = ENABLE scope = SUBNET profile = CURRENT
Add Comment
Please, Sign In to add comment