BUG: Error 403: UNKNOWN TOKEN on SELECT with SubqueryLast reviewed: November 7, 1997Article ID: Q164917 |
The information in this article applies to:
SYMPTOMSParse error 403 is reported on a SELECT statement when using the COALESCE function in conjunction with a subquery. This problem has been reproduced on SQL Server6.5, but the problem does not occur on SQL Server 6.0. The following is the text of the error reported:
Msg 403, Level 16, State 1 Invalid operator for datatype op: UNKNOWN TOKEN type: varcharThe following query will generate the error message against the pubs database:
SELECT T1.title_id, pubid = COALESCE((select T3.pub_id from publishers T3 where T3.pub_id = T1.pub_id and T3.pub_id = T2.pub_id), (select T3.pub_id from publishers T3 where T3.pub_id = T1.pub_id and T3.pub_id = T2.pub_id), 'BU1032') FROM Titles T1, Titles T2 WHERE T1.title_id = 'BU1032' WORKAROUNDTo work around this problem, do either of the following:
STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONFor additional information, see the following related article in the Microsoft Knowledge Base:
ARTICLE-ID: Q156292 TITLE : FIX: Create View with Nested SELECT in CASE Causes Error 206 |
Additional query words: coalesce unknown token
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |