Microsoft KB Archive/187857

= FIX: RPC Returns Error 7222 When Re-executed After Canceled RPC =

Article ID: 187857

Article Last Modified on 7/19/2006

-

APPLIES TO


 * Microsoft SQL Server 6.5 Standard Edition

-



This article was previously published under Q187857



BUG #: 17981 (SQLBUG_65)



SYMPTOMS
After canceling a remote procedure call (RPC), re-execution of the same RPC from the same connection returns the following message:

Error 7222 "Received bad token 0x%x from site '%.*s'"



CAUSE
Canceling an RPC on a primary site does not cancel the connection on the remote site.



WORKAROUND
To work around this problem, do either of the following:


 * Do not cancel the RPC.

-or-
 * After the RPC cancellation, issue subsequent calls to the same RPC from another spid. Note that this workaround may not work if the original RPC is holding blocking locks.



STATUS
Microsoft has confirmed this to be a problem in SQL Server 6.5. This problem has been corrected in Service Pack 5a for Microsoft SQL Server 6.5.For more information, click the following article number to view the article in the Microsoft Knowledge Base:

197177 INF: How to Obtain SQL Server 6.5 Service Pack 5a

For more information, contact your primary support provider.



MORE INFORMATION
After canceling the RPC, sp_who on the remote site shows an associated unkillable spid. Clearing the connection on the primary site will also clear the spid on the remote site.

Configuration values 'remote conn timeout' and 'remote query timeout' have no effect.

Additional query words: sp sp5cancelled cancelling connect time out

Keywords: kbbug kbfix kbsqlserv650sp5fix KB187857

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.