user973440
user973440

Reputation:

How can I create application that can connects to SQL server and perform CRUD operation?

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

Answers (2)

patil.rahulk
patil.rahulk

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

kumar
kumar

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

Related Questions