Article ID: 214818 - Last Review: March 14, 2006 - Revision: 2.1 FIX: UPDATE of Table Column with a FOREIGN KEY Constraint May Fail with Msg 8623This article was previously published under Q214818
BUG #: 53943 (SQLBUG_70)
SYMPTOMS
Attempting to update a column using a declared variable may fail if that column has a FOREIGN KEY (FK) constraint and the FROM clause references multiple tables. In such cases, the following error message occurs:
Server: Msg 8623, Level 16, State 2, Line 8 Internal Query Processor Error: The query processor could not produce a query plan. WORKAROUND
To work around this problem, use CONVERT to cast the variable to its data type. In the preceding example, replace:
with: STATUS
Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base: 254561
(http://support.microsoft.com/kb/254561/
)
INF: How to Obtain Service Pack 2 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0 For more information, contact your primary support provider.
| Article Translations
|
Back to the top
