Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A cursor already exists
Message
 
 
To
05/03/2008 09:38:28
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01298878
Message ID:
01298885
Views:
18
>>Check DEALLOCATE command in BOL.
>>
>>DEALLOCATE @MyCursor
>
>Do you know if this will trigger another error if the cursor does not exist?

Do you mean you would try to deallocate cursor that didn't exist? Let me try, though you can always use TRY/CATCH in 2005.

Well, it did produce an error if the variable was not declared:

Must declare the scalar variable "@myCursor".
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform