I ran into a situation this morning that I didn't know was possible. I executed a stored procedure which contained cursor processing. During the process, I trapped for a situation and exited the stored procedure without closing and deallocating the cursor.
When I called the stored procedure a second time, I received a "A cursor with the name curEmployeeFK already exists" message.
My previous assumption was that everything in Stored Procedures was local to the procedure. Can anyone shed some light on why this happens?
When I called the stored procedure a second time, I received a "A cursor with the name curEmployeeFK already exists" message.
My previous assumption was that everything in Stored Procedures was local to the procedure. Can anyone shed some light on why this happens?