title: Android sql database connection
body: <p>I try to connect from eclipse emulator android to an sql server using this code:</p>
  
  <pre><code>String driver = "net.sourceforge.jtds.jdbc.Driver";
  Class.forName(driver).newInstance();
  String connString = "jdbc:jtds:sqlserver://83.212.240.15:1521/hua;encrypt=fasle;user=xxxxxx;password=xxx;instance=SQLEXPRESS;";
  String username = "xxxxx";
  String password = "xxxxx";
  conn = DriverManager.getConnection(connString,username,password);
  Statement stmt = conn.createStatement();
  ResultSet reset = stmt.executeQuery("insert into picture values('hi');");
  conn.close();
  </code></pre>
  
  <p>but i have the following error</p>
  
  <blockquote>
    <p>Service com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@40cebcd0 that was originally bound here<br>
        android.app.ServiceConnectionLeaked: Service com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@40d64ec0 that was originally bound here<br>
    at android.app.LoadedApk$ServiceDispatcher.(LoadedApk.java:969)</p>
  </blockquote>
  
  <p>I have put the permission for internet and i also i have put the jtds-1.3.0.jar in lib folder.Any ideas?</p>
  
  <p>Thanks in adnvanced</p>