Hello,
Welcome to Microsoft Q&A!
So you are trying to connect to the local host for the to sql express local database, right. Have you enabled the local loopback on your device when you sideloaded your app? UWP apps are isolated and running in the sandbox, so UWP apps have limitations when it wants to access system resources. This is a common cause of sql connecting problems.
Use the checknetisolation.exe tool.
To enable loopback use this command:
c:\>checknetisolation loopbackexempt -a -n=<package family name>
To disable loopback use this command:
c:\>checknetisolation loopbackexempt -d -n=<package family name>
Please check this document- Enabling loopback for a UWP application for more inforamtion.
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.