Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
FIX: Complex Update Statement Returns 8624 Internal SQL Server Error
Article ID: 286249 - View products that this article applies to.
This article was previously published under Q286249
BUG #: 351305 (SHILOH_bugs)
An UPDATE statement that contains a subquery, which selects from a derived table formed from a UNION ALL, may generate the following error message:
Server: Msg 8624, Level 16, State 21, Line 2
Internal SQL Server error.
To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/290211/EN-US/ )INF: HOw to Obtain the Latest SQL Server 2000 Service Pack
If possible, rewrite the query by using only the UNION operator, without the ALL keyword.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Microsoft SQL Server 2000 Service Pack 1.
To reproduce this error, run this script: