JDBC runs in pure Java, but not in Android
<p>This code <strong>runs OK</strong> in a pure Java application:</p>

<pre><code>    Connection conn = null;
    Statement inst;

    try {

        Class.forName ("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance ();

        conn = DriverManager.getConnection("jdbc:sqlserver://192.168.1.100\\MSSQLSERVER:1433;DatabaseName=Prueba", "sa", "sa1234");
        inst = conn.createStatement();

        inst.executeUpdate("INSERT INTO TIENDAS(NOMBRE) VALUES ('ZZZZZZZ') ");

    } catch (Exception e) {
        e.printStackTrace();
    }
}
</code></pre>

<p>But in Android project I get the error <strong>'Socket closed'</strong>.</p>

<p>I'm using Eclipse Helios.</p>

<p>Can somebody help me?</p>
