开发者

Connecting to a SQL Server from Windows Phone 7

I have a concept for a WP7 app but I need to establish a connection to a SQL Server from the app. Problem is I cant the method to do this in the the 4.0 framework. I know how to do this in a desktop app but I dont have the same methods available to me when developing开发者_如何学运维 a windows 7 phone app. Anyone know how to do this? If the concept is wrong can you direct me to how it should be done?


Silverlight (either on a phone, or a browser) simply can not make such network connections. You're going to need a server to talk to, likely with WCF


Doesn't look like you can at the moment -

http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/7b6b8d0b-509d-4ecc-a28d-8804cc22e475


It would be a better practice to front your database server with some kind of web service as exposing a database directly to the internet is generally considered too much exposure for your database.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜