How to connect Windows Phone to a SQL Server?

2

I would like to know how to access and receive data from a server from Windows Phone. Simply put: I have a PC and I want to access a document directly from my smartphone.

    
asked by anonymous 25.02.2014 / 15:56

5 answers

2

Windows Phone was not specifically designed to connect to an instance of SQL Server because Microsoft does not allow it. The correct thing would be to connect to a website that has a Web API implemented in it.

In any case, you have a version of Google Drive for Windows Phone for document access:

link

    
25.02.2014 / 16:46
2

Mobile applications can not communicate directly with relational databases. For any data integration / persistence in an external source. A web backend is required to allow interaction via the API.

There are some cloud storage services that provide free usage levels, such as Parse and Firebase .

    
25.02.2014 / 17:12
2

If the requirement is to connect to SQL Server without anything else, you can always create a SOAP endpoint .

    
26.02.2014 / 12:20
1

In this case, the Windows Phone application can make an HTTP call to a Web API. On the server, you can do a Web API project. Microsoft has many features about Web API, how it works, and how to make one. An excellent source is their own website, link

    
25.02.2014 / 17:17
1

An observation regarding the other comments:

Windows Phone does not allow connection to a remote database!

However, it is perfectly possible to connect to a local database (eg SQLite). In fact, this is the predominant method in both Windows Phone and other mobile platforms (Android, iOS, WinRT).

How to use SQLite in Windows Phone: link

    
26.02.2014 / 18:09