I have a VFP9 app that runs a SQL Server stored procedure. That stored procedure creates a temporary table (among other things). Right now, I've hardcoded it as ##TempTable, but I want to pass a unique name from my VFP app to the SQL Server proc. That way, I avoid problems by other concurrent users who might wish to run the same stored proc (with differing results stored in the temp table).
I can't use just #TempTable (only one # sign) because there are a few procedures that run that reference the stored proc.
I tried passing a string parm to a simple CreateTempTable SQL stored procedure but that only created a table with the name as my parm! (e.g., ##@tcTable)
Ideas on how to address this so that multi-user collisions don't happen?
tia!
--Michael
I can't use just #TempTable (only one # sign) because there are a few procedures that run that reference the stored proc.
I tried passing a string parm to a simple CreateTempTable SQL stored procedure but that only created a table with the name as my parm! (e.g., ##@tcTable)
Ideas on how to address this so that multi-user collisions don't happen?
tia!
--Michael