Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 10 Universal App Getting data from SQL Server

I'm about to start Windows 10 Universal app development.

For my project I need to get data from a Microsoft SQL Server.

I know locally It is only possible to use SQLite but is there anyway I can interact with an SQL Server?

like image 941
Harvey Avatar asked Dec 11 '25 20:12

Harvey


1 Answers

You can’t connect to a MS SQL Server directly from a Universal Windows App. As CodeCaster mentioned, the recommend way is creating a web service, and the app can retrieve the data through the web service.

For example:

App -> data service on IIS (e.g. OData service) -> database (MS SQL Server)

How to: Deploying OData Services using IIS & SQL Server

You use the HttpClient to retrieve the data from OData service.

like image 108
Jeffrey Chen Avatar answered Dec 13 '25 17:12

Jeffrey Chen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!