title: com.mysql.jdbc.driver class not found exception
body: <p>I took help from <a href="http://capdroid.wordpress.com/2012/07/10/configuring-and-accessing-mysql-jdbc-driver-on-android-application/" rel="nofollow">this</a> blog post:</p>
  
  <p>But I get com.mysql.jdbc.driver class not found exception. What's different in that blog post was that they've tried to connect to mysql instead of MS SQL in my case. Here's my code so far:
  package com.example.dbtry;</p>
  
  <pre><code>public class MainActivity extends Activity {
  protected TextView tv;
  
  private static final String url = "jdbc:jtds:sqlserver://Server.com:1433/DB_name";
  private static final String user = "username";
  private static final String pass = "password";
  
  
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      testDB();
  }
  
  public void testDB() {
      tv = (TextView)findViewById(R.id.textView1);
       try {
              Class.forName("com.mysql.jdbc.Driver");
              Connection con = DriverManager.getConnection(url, user, pass);
              /* System.out.println("Database connection success"); */
  
              String result = "Database connection success\n";
            tv.setText(result);
              Statement st = con.createStatement();
              ResultSet rs = st.executeQuery("select * from this_table");
              ResultSetMetaData rsmd = rs.getMetaData();
  
              while(rs.next()) {
                  result += rsmd.getColumnName(1) + ": " + rs.getInt(1) + "\n";
                  result += rsmd.getColumnName(2) + ": " + rs.getString(2) + "\n";
                  result += rsmd.getColumnName(3) + ": " + rs.getString(3) + "\n";
              }
              tv.setText(result);
          }
          catch(Exception e) {
              e.printStackTrace();
              tv.setText(e.toString());
          }   
  
      }
  
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      // Inflate the menu; this adds items to the action bar if it is present.
      getMenuInflater().inflate(R.menu.main, menu);
      return true;
  }
  
  }
  </code></pre>
  
  <p>Please tell me what I'm doing wrong. I have also added permission to the Internet in the manifest.</p>