Hi,
In one of my SP, which runs 100s of lines, I am using a #temp table to store the results during the process.
At the end of the SP, a simple select statement returns rows from #temp using "Select * from #temp"
The procedure works fine when run in SQL-QA, but when I am trying to use this SP to create a DTS job, I get no results returned. I get this message
"No rowset was returned from the SQL statement".
If I replace the # table with a permanent temp table, it works fine.
I can't use a permanent temp table since the procedure may run in multiple instances and all will be using the same table then.
Any suggestion????
Thanks in anticipation,
RajD
In one of my SP, which runs 100s of lines, I am using a #temp table to store the results during the process.
At the end of the SP, a simple select statement returns rows from #temp using "Select * from #temp"
The procedure works fine when run in SQL-QA, but when I am trying to use this SP to create a DTS job, I get no results returned. I get this message
"No rowset was returned from the SQL statement".
If I replace the # table with a permanent temp table, it works fine.
I can't use a permanent temp table since the procedure may run in multiple instances and all will be using the same table then.
Any suggestion????
Thanks in anticipation,
RajD