Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hi,
 
I am trying to connect from my Windows Phone 7 app to the MS Azure Database.
This database is suppose to also be used on a website that i have did.
Is it possible?
Thanks!
Posted 15-Aug-12 17:46pm
Edited 15-Aug-12 18:32pm
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You can (and I do) use SQL Azure as a back end for my phone apps. The issue that you will find is that a setting on SQL Azure is the IP addresses that the database is expecting to get contact from. You probably won't want to open that up for everyone.
 
What I have done is to make a small WCF service in a compute instance and used EF to talk to the database directly. This way the phone app can just call the service and the service calls into the database. This simplifies many things and also allows you to use that same service on a website or any other phone project as well. I have mine running on iOS, Android, WP7, and Windows 8 now.
 
Let me know if you want more information, I have given this as a talk in Boston at a code camp before.
  Permalink  
Comments
Wes Aday at 16-Aug-12 16:15pm
   
*cough* article *cough*
 
5
Steve Maier at 16-Aug-12 16:25pm
   
Yea, I should do one on it since I have all the sample code and all of the slides from my presentation. Just have to remind myself to do it later after I resubmit my win8 app with the release bits.
xbolslock at 16-Aug-12 19:28pm
   
Hi! Ya that would be good if U can share with me more! I am having trouble in just connect from the WP to the azure. If there's any faster way pls do share! And I think being able to share with other platform as well could be one future possibility for my app too. So pls share!! Thanks!! :)
Steve Maier at 17-Aug-12 10:04am
   
I started on the article last night and will have it done over the weekend. Want to make sure it is good enough.
xbolslock at 20-Aug-12 21:36pm
   
is it up yet?
xbolslock at 17-Aug-12 10:16am
   
hahas! would be looking forward to it! =D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 328
1 Sergey Alexandrovich Kryukov 295
2 Gihan Liyanage 292
3 ClimerChinna 232
4 Abhinav S 192
0 Sergey Alexandrovich Kryukov 8,213
1 OriginalGriff 7,089
2 CPallini 2,598
3 Richard MacCutchan 1,925
4 Abhinav S 1,778


Advertise | Privacy | Mobile
Web03 | 2.8.140826.1 | Last Updated 16 Aug 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100