Sqlserver
 sql >> Database >  >> RDS >> Sqlserver

Come connettere l'applicazione Android a SQL Server tramite jbdc?

Prova:

String driver = "net.sourceforge.jtds.jdbc.Driver";
        Class.forName(driver).newInstance();
        String connString = "jdbc:jtds:sqlserver://<ip>:1433/<databasename>;encrypt=false;user=<username>;password=<password>;instance=SQLEXPRESS;";
con = DriverManager.getConnection(connString);