title: SQL exception while creating connection to SQL Server using jdbc
body: <p>I am getting the following error while creating a connection to SQL Server using jdbc. THe error is :</p>
  
  <p>java.sql.SQLException: No suitable driver found for jdbc:sqlserver//D-PC//SQLEXPRESS;integratedSecurity=true
  Failed to make connection!</p>
  
  <pre><code>    import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement;
  
      /**  *  * @author Jatin  */ public class SQLConnect {
          public Connection sqlcon(Connection conn){
             try{
                 Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
             }
             catch(ClassNotFoundException e){
                 e.printStackTrace();
             }
             Statement stmt = null;
             try{
                 conn = DriverManager.getConnection("jdbc:sqlserver//D-PC//SQLEXPRESS;integratedSecurity=true");
                 stmt = conn.createStatement();
                 stmt.executeUpdate("CREATE DATABASE Students");
                 System.out.println("Database Created");
             }
             catch(SQLException e){
                 e.printStackTrace();
             }
             if (conn != null) {      System.out.println("You made it, take control your database now!");     } else {        System.out.println("Failed to make connection!");   }
              return(conn);
          }
          /**
           * @param args the command line arguments
           */
          public static void main(String[] args) {
              Connection con =null;
             SQLConnect sqlcon = new SQLConnect();
             con = sqlcon.sqlcon(con);
          }
  
  }
  </code></pre>