Zach
Zach

Reputation: 21

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?

Upvotes: 2

Views: 5332

Answers (3)

Mick N
Mick N

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

Ralph Shillington
Ralph Shillington

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

Related Questions