r/SQLServer • u/East_Sentence_4245 • Jul 24 '26
Question Mobile app not showing SQL data unless I connect via SSMS?
I have an Azure SQL subscription (the cheapest one) which will be primarily used for our mobile app.
The issue is that I've tested the mobile app twice and the mobile app won't show data unless I connect to the database via SSMS.
Literally, I open the mobile app and no data is displayed. I refresh the content several times (i.e. the mobile app has a Refresh button) and it still doesn't fetch any data. BUT once I go to my laptop and connect to the same DB via SSMS, I do another refresh to the mobile app and data is shown.
I believe it's related to the Azure DB and think I might have an idea of why this is happening - the connection via my laptop "wakes up" the database.
The question is: how do I eliminate that issue?
•
u/AutoModerator Jul 24 '26
After your question has been solved /u/East_Sentence_4245, please reply to the helpful user's comment with the phrase "Solution verified".
This will not only award a point to the contributor for their assistance but also update the post's flair to "Solved".
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
4
u/Geno0wl Jul 24 '26
What kind of logging does the mobile app have? That would be where to really find your answer. And if your app doesn't have accessible logs, then you should really fix that because good logging can save you countless hours manually debugging.
3
u/pix1985 Jul 24 '26
You need to disable auto-pause on the database
1
u/jwk6 Jul 24 '26
What authentication method are you using to connect and login from the mobile app to the Azure SQL Database?
Are you sure that the app actaully has the database permissions required to select from tables?