Using latest Q3 release and VS2010 with SQL2000
Using the stored procedure editor, to create complex types.
It works for some, but on others I get the following error:
Invalid object name: '#tmp'.
The stored procedure is parameter-less and returns a single result set containing 12 columns. Nothing unique in the result set, no use of cursors in the stored procedure, just a simple SELECT, no JOINS.
The cause of the problem appears to be the following that is within the stored procedure - it executes another stored procedure to identify the user via SPID, using:
Within this (^) stored procedure is a temporary table named, '#tmp' and I would presume is the cause of the error, the TSQL for the sproc follows:
If I rem the above, the error does not occur - but we utilize this methodology to identify the invoking user in numerous sprocs.
FYI - once I retrieve the shape and create the complex type, I can un-rem the above and the sproc executes without error.
Is this a known issue or is there a work around for this?