I have a stored procedure which makes used of a temporary table with ##temp
creating on the fly using select * into ##temp from tablename
.
The problem I have having is this stored procedure seems to delete or make this available only for that moment in time when the query is ran, despite having ##
which is global and can be used by other users from what i know.
I am using SSRS to pull the stored procedure and using drill through from this report to the same report, first one only showing charts, the second report which is the same stored procedure which uses the actions link via parameter but the second report doesn't recognize the ##temp
table.
Now that you got the background, is there a way around this or a better way of doing it, keep in mind we don't have a data warehouse at the moment, so just using temporary tables to do the work around.
Thanks