public class SqlServerCon(){
Connection con = null;
try{
Class.forName("com.microsoft.sqlserver.jbdc.SQLServerDriver");
con = DriverManger.getConection("jdbc:sqlserver://localhost:1433;databaseName=#;user=sa;password=123456");
}
catch(Exception e){
e.printStackTrace();
}
}