Android Question RDC with Ms SQL server example or howto

Pisinho

Active Member
Licensed User
Longtime User
I read a tutorial RDC with SQL but i don't understanding.
I have a SQL server in my private lan and i have a linux server with IP static for mail and web server (Apache). I would use a RDC for application which send query when a person with tablet or phone are out of office. What steps should I do to get this ? you have a source example for MSSQL ? Thanks in advance.
 

Kwame Twum

Active Member
Licensed User
Longtime User
Hi Erel, I'm connecting to a remote MS SQL and can't seem to access the remote server from the browser. These are my configurations:
  • From the config file
B4X:
#SQL Server
DriverClass=net.sourceforge.jtds.jdbc.Driver
JdbcUrl=jdbc:jtds:sqlserver://serveraddress/databasename
User=myuser
Password=mypass
ServerPort=1089
  • Image of running RDC server


I'm not too sure how to access it via a browser...
I've tried the following but to no avail:
  1. serveraddress:1089/?method=test
  2. serveraddress:1089/?databasename
Any help will be appreciated.
 
Upvote 0

Kwame Twum

Active Member
Licensed User
Longtime User
Thanks Erel, it worked, I however received:

RemoteServer is running (Sat Sep 20 10:41:39 BST 2014)
java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.

always timing out... any suggestions?

And when I send a request with the client device, I get
B4X:
Error: java.net.SocketTimeoutException

Somewhere in the logs () from the command prompt, I noticed this line too:
B4X:
Caused by: com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource from com.mchange.v2.resourcepool.BasicResourcePool@47baec4c -- timeout at awaitAvailable()
 
Last edited:
Upvote 0

Kwame Twum

Active Member
Licensed User
Longtime User
You should check the database server configuration and make sure that the user name and password are correct and that it allows remote connections.
So far, so good... credentials are accurate. And it does allow remote connections... (I work on it from my Mgt. Studio everyday with those same credentials)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…