简体   繁体   中英

Connecting SQL server 2014 database with android application

I have created a database with SQL server 2014, and i want to connect and access it from android application im developing in android studio.

is it possible without creating a web service?

Never ever do any heavy weighted operations such as directly connecting to an sql server since consumes heavy battery and it requires huge data consumption where the end users might not prefer.So The only light weighted way present is to use your own TCP based logic layer ie giving a call to web services.

You can refer to KSOAP2 library in connecting to your webservice which gives you a response to the request you make.If you are a programmer of .net you can write an asmx web service.And connecting to to the web service is given clearly in this link Connecting to ASMX Web Services

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM