Posted 2 December 2024, 5:05 pm EST
I have an Active Report (version 17) with a Dataset that has a SQL stored procedure set up to populate some fields. If I have my SQL stored procedure pulling data a certain way, the Active Report won’t show the resulting data even though it’s the same in both cases. I’ve verified directly through SSMS that the query is pulling the same data in both cases
This results in no data being displayed on the Active Report
SELECT name, amount, date_added, record_id FROM table1 WHERE record_id = (SELECT TOP 1 record_id FROM #tempTable1)
If I instead pass a record_id into the stored procedure and change the query to the below, it works with no issue
SELECT name, amount, date_added, record_id FROM table1 WHERE record_id = @record_id
Am I not able to use temp tables when pulling data for a report? Is there something else going on that I’m missing?