h2c
h2c

Reputation: 21

How to connect sql azure with android app and sql server

Wanna know how to connect sql azure with android app and sql server?

STEP 1: I want to use real-time sync between exist database (dbo schema and other) in sql server and azure mobile services/azure sql database.

STEP 2: I want to connect android app to azure mobile services or azure sql database.

Upvotes: 1

Views: 11043

Answers (2)

MoonLight
MoonLight

Reputation: 557

This is the answer to your step 2

If you don't want to use a brand new database and want to use your existing azure database then follow this link. This is a jtds method and I followed it and it worked for me.

You will use your jdbc connection url that comes with your database instance on azure portal with minor changes in it which are explained in the link. Your portal profile password and username will also be used in the connection url so keep in mind hackers might get a peak to it if they examine your application apk.

Upvotes: 1

kumar kundan
kumar kundan

Reputation: 2057

You are working with Android . So, you need to go as:-

switch to Android Studio , if you already did it then it's fine. Use tutorials provided by Microsoft Azure Mobile Services. Here is the link to get started for Android :-

For brand new DataBase and new Mobile Services :-

https://github.com/Azure/azure-mobile-services/blob/master/docs/mobile-services-android-get-started.md

EDIT : Broken links updated

Upvotes: 1

Related Questions