I create a SP to produce results. In this SP, results recorded in a temp table #mytemp. The final sql in this sp is like:
select * from #mytemp
Then I create datawindow to display data from this sp and got following error:
Number 277 Select Error: there was a transactin active when exiting the stored procedure 'myproc'. The temporary table '#mytemp' was dropped in this transaction either explicitly or implicitly. This transaction has been aborted to prevent database corruption.
How to resolve this problem?