title: java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
body: <pre><code>java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
  </code></pre>
  
  <p>I got the above exception when i trying to deploying my Application into tomcat. but the weird thing is , i tried with a simple main method and it's works fine. Any help please ???</p>
  
  <p>I did the following:</p>
  
  <pre><code>Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
  String connectionUrl = "jdbc:microsoft:sqlserver://localhost:1433;" + "database=DBName;" + "user=UserName;" + "password=Password";
  connection = DriverManager.getConnection(connectionUrl);
  </code></pre>