You are on page 1of 1

Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); con=DriverManager.

getConnection("jdbc:sqlserver://localhost:1433;" + "databaseName=OnlineCartDB;user=sa;password=password123;");

You might also like