I have a Power App with two Premium SQL Connectors in it:
- Azure SQL Database
- SQL Server 2019 Database, running on an Azure VM
I set both up for stored procedures, passing in parameters, and allowing data to be shown in galleries.
I am using buttons to call the procedures and store the returned data in Collections, using the ClearCollect command.
The first (Azure SQL Database) works just fine. I can see the data in Collections. It gives me a little, clickable table icon under ResultSets, and I can manifest the collection in a gallery nested inside another gallery.
The second (calling SQL Server based on VM, using an On Premises gateway) does not work. Under Variables > Collections it says "Table: 1 rows" but when rClick to view the table, the ResultSet for the collection shows a ? question mark instead of a clickable table icon.
How do I get it to show data?
FYI, when I set it up, it allowed me to see a list of the stored procedures in the database, and when I code a button to call it, the parameters for the stored procedure show in the prompt. But when I click the button, passing in a valid parameter (which works when running from SSMS), only the ? is returned in the ResultSet.
It should look like this:
But instead it looks like this: