Microsoft KB Archive/171101: Difference between revisions
m (Text replacement - "<" to "<") |
m (Text replacement - ">" to ">") |
||
Line 54: | Line 54: | ||
Msg 16916, Level 16, State 1<br /> | Msg 16916, Level 16, State 1<br /> | ||
A cursor with the name '<cursor | A cursor with the name '<cursor>' does not exist | ||
</div> | </div> | ||
Line 83: | Line 83: | ||
If you try to drop the stored procedure after the handled access violation, you will encounter the following error message:<br /> | If you try to drop the stored procedure after the handled access violation, you will encounter the following error message:<br /> | ||
<br /> | <br /> | ||
Msg 3702, Level 16, State 3 Cannot drop the procedure '<procedure | Msg 3702, Level 16, State 3 Cannot drop the procedure '<procedure>' because it is currently in use.<br /> | ||
<br /> | <br /> | ||
You must restart SQL Server to drop and re-create the procedure. | You must restart SQL Server to drop and re-create the procedure. |
Latest revision as of 20:43, 20 July 2020
Article ID: 171101
Article Last Modified on 10/3/2003
APPLIES TO
- Microsoft SQL Server 6.5 Service Pack 1
This article was previously published under Q171101
BUG #: 16172 (Windows NT: 6.5)
SYMPTOMS
If a cursor is declared and deallocated, but not opened on the first execution of a stored procedure or trigger, the next execution of the stored procedure or trigger where the cursor is opened results in the following error:
This error may be followed by a handled access violation (AV) that terminates the client connection.
WORKAROUND
To work around this problem, open the cursor before deallocating it.
STATUS
Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. This problem does not occur in U.S. Service Pack 2 for Microsoft SQL Server version 6.5. For more information, contact your primary support provider.
MORE INFORMATION
If you try to drop the stored procedure after the handled access violation, you will encounter the following error message:
Msg 3702, Level 16, State 3 Cannot drop the procedure '<procedure>' because it is currently in use.
You must restart SQL Server to drop and re-create the procedure.
Keywords: kbbug kbusage kbsqlserv650bug KB171101