如何将窗口Azure数据库链接到我的窗口8应用程序 [英] How to link window Azure database to my window 8 application

查看:78
本文介绍了如何将窗口Azure数据库链接到我的窗口8应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个Window Azure数据库,但我不确定如何链接到我的Window 8应用程序



我使用Visual Studio 2012来创建我的窗口8应用程序并使用C#



如何联系这里的任何人知道?请指导我



谢谢

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

推荐答案

连接到Windows Azure SQL数据库的指南 [ ^ ]应该是一个好的起点。
Guidelines for Connecting to Windows Azure SQL Database[^] should be a good place to start.


端口1443需要打开连接到Windows Azure DB,您还需要添加IP地址以允许访问Azure服务器(单击数据库仪表板上的管理允许的IP地址链接以设置本地计算机的IP地址)。此外,如果您在Windows Azure门户上,请单击数据库选项卡>单击您的数据库名称>然后单击连接字符串,使用SSMS中的连接字符串信息远程连接数据库。因为useraneme后面有一个带有服务器名称的@符号。因此,如果您不包括它,那么它将失败。
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.


Jeff关于使用Windows Azure移动服务的评论是一个很好的建议。不要让移动服务这个名字欺骗你,它适用于Windows 8以及iOS。



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



如果您不想这样做,那么您可以随时创建自己的服务来连接到该数据库以访问数据库。我使用我的一个应用程序,因为我从iOS,Android,WP7 / 8,Windows 8和Facebook连接到它。我创建了一个Web服务并使用EF连接到数据库。
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.


这篇关于如何将窗口Azure数据库链接到我的窗口8应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆