Reputation: 21
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?
Upvotes: 2
Views: 5332
Reputation: 14882
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.
Upvotes: 1
Reputation: 21108
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
Upvotes: 2
Reputation: 3304
Doesn't look like you can at the moment -
http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/7b6b8d0b-509d-4ecc-a28d-8804cc22e475
Upvotes: 1