Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have created a Window Azure database but I not sure how to link to my Window 8 application

I am using Visual studio 2012 to create my window 8 application and using C#

How to connect anyone here know ? please guide me

thank you
Posted
Comments
Sergey Alexandrovich Kryukov 23-Jan-13 23:26pm    
XAML?!
Jeff Blankenburg 6-Feb-13 11:44am    
Have you looked at Windows Azure Mobile Services? Pretty remarkable set of tools.

 
Share this answer
 
Comments
weixiongpoh 27-Jan-13 21:48pm    
I having a error message while connecting

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Is the network problem ?
Port 1443 needs to be opened to connect to Windows Azure DB, you also need to add your IP address to allow access to the Azure server (click on the "Manage Allowed IP Addresses" link on the DB dashboard to set your local machine's IP address) . Also if your on your Windows Azure Portal, click the Database tab > Click your Database Name > then Click Connection Strings, use the Connection String info in SSMS to connect the Database Remotely. Because the useraneme has an @ sign behind it with the server name. So if your not including that then it would fail.
 
Share this answer
 
Jeff's comment about using Windows Azure Mobile Services is a great suggestion. Don't let the name mobile services fool you, It is setup for Windows 8 as well as iOS.

http://www.windowsazure.com/en-us/home/scenarios/mobile-services/[^]

If you don't want to do that then you could always create your own service to connect to that to access the database. I do that with one of my apps, since I connect to it from iOS, android, WP7/8, Windows 8, and Facebook. I created a web service and connected to the database with EF.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900