Yes, you need a service level. Unable to connect UWP application and SQL Server directly.
Why this is not possible:
- UWP applications are applications created for distribution from the store. It is not safe to store the connection string on the client computer.
- You cannot update all client applications in one moment if you find an error. Service updates are much simpler and faster.
The easiest way to create a cloud service is to create an Azure Mobile App and connect your UWP application to the SQL Server cloud database using it.
Only for MySQL databases is it possible to directly connect the UWP application to the database using Connector / Net But this is not recommended for connecting a mobile application and a database
Alexej Sommer
source share