Search code examples
c#sql-servervisual-studiouwpodata

How to connect to MSSQL server in UWP (.NET universal App)


I Cannot connect to my OData Web Service at the moment in my universal App, so i want to ask if someone of you found a way to connect to a MSSQL Server? As I know it is only possible to connect to a MySQL server right now, but that is not an option for me.


Solution

  • I just created my own WCF - Web Service to gather my informations from the SQL- Server to my UWP-App.

    This video helped me alot to understand the basics of WCF.

    And this to host it on an IIS.

    This sample Project is also very useful to replicate it to UWP (universal apps).

    I Hope that this informations can help someone here.