Reputation: 377
I'm trying to create an Android app via Xamarin and I want to connect this app to a remote database in SQL Server in order to make queries. How can I do so?
Upvotes: 0
Views: 125
Reputation: 6941
Connecting to SQL server via xamarin is not that much good idea. I strongly not recommend this. If you have to do something with database at mobile I can suggest you SQLLite . You can find many example how people do with this.
The best approach will be creating a WebApi to handle logic and database works and communicate via json requests to your mobile app.
This is a huge concept that can not be easily expalin as a answer here. I suggest you to split your works by creating your web api and mobile ui at diffrent solutions.
Anyway If you want to see a real world example to handle similiar goals as your have a look to this sample that created by Microsoft.
Upvotes: 1