Android Question Remote Database Connector to Microsoft SQL Server

marcello

Member
Licensed User
Longtime User
I have to connect the android app with a Microsoft SQL Server (express) with RDC but the tutorial on line is't unclear. I have problems with the configuration file and the jdbc driver.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

marcello

Member
Licensed User
Longtime User
I've a new problem : in configuration file i have write the JdbcUrl same this string
JdbcUrl=jdbc:jtds:sqlserver://127.0.0.1:1433/anagrafica;instance=SQLEXPRESS

but the DriverClass not it's not rigth :
DriverClass=net.sourceforge.jtds.jdbc.Driver

can you send me aexample of file configuration for Microsoft SQL Server ?
I send you the display error when i strat the http://127.0.0.1:17178/?method=test
upload_2013-8-20_18-13-26.png
 
Upvote 0

marcello

Member
Licensed User
Longtime User
Yes, have to,

Now I've new problem : the connection has timed out

upload_2013-8-21_13-37-11.png


the my file configuration is

......
#SQL Server
DriverClass=net.sourceforge.jtds.jdbc.Driver
JdbcUrl=jdbc:jtds:sqlserver://127.0.0.1:1433/Facture;instance=SQLEXPRESS
#User=root
#Password=
ServerPort=17178
#If Debug is true then this file will be reloaded on every #query.
#This is useful if you need to modify the queries.
Debug=true
......

Facture is my database
 
Upvote 0
Top