Reputation:
Can anybody suggest me how to connect SQL server with Android? I need to create, read, update, delete data in SQL server from Android UI.
If anybody provide me source that will be greatly helpful for me.
Upvotes: 0
Views: 1175
Reputation: 584
Create a RESTFul webservice with JSON and implement all your CRUD operations in that webservice. It is not a good practice to directly connect to a database from mobile devices because then you are exposing your backend to the outside world.
Check the link for actual implementation. Here is a more detailed example.
Upvotes: 0
Reputation: 691
You can add the Database driver in to your project and regular jdbc code for that. But i suppose this is not a good practice. Instead use SAOP or REST webservice with JSON.
Upvotes: 1