I have a stored procedure that ends with a SELECT statement.
The stored procedure returns a table that holds values populated by the stored procedure itself based on run time parameters.
I use the stored procedure as input into Crystal Reports.
A manager has now seen my procedure ( always fatal ) and he wants access for himself and a few others. Since this procedure manipulates standard database tables as work tables, I need to modify the stored procedure so that the work tables are unique to each Crystal user session. That way more than one user can use the procedure at the same time without screwing each other up.
Am I correct that the best way to solve this is to change my work tables to temporary tables ( # prefix ) within the procedure and create them as part of the procedure?
Are there other options?
Dazed and confused
The stored procedure returns a table that holds values populated by the stored procedure itself based on run time parameters.
I use the stored procedure as input into Crystal Reports.
A manager has now seen my procedure ( always fatal ) and he wants access for himself and a few others. Since this procedure manipulates standard database tables as work tables, I need to modify the stored procedure so that the work tables are unique to each Crystal user session. That way more than one user can use the procedure at the same time without screwing each other up.
Am I correct that the best way to solve this is to change my work tables to temporary tables ( # prefix ) within the procedure and create them as part of the procedure?
Are there other options?
Dazed and confused