PRB: Misleading Error Message with an IN Clause On Text Data Type (271525)
The information in this article applies to:
This article was previously published under Q271525 SYMPTOMS
SQL Server returns a misleading error message when you use the IN clause with the text data type.
The error message that occurs is:
Server: Msg 306, Level 16, State 1, Line 1
The text, ntext, and image data types cannot be used in the WHERE, HAVING, or ON clause, except with the LIKE or IS NULL predicates.
CAUSE
In SQL Server 7.0, the sysmessages system table in the master database has the following text:
Server: Msg 306, Level 16, State 1, Line 1
The text, ntext, and image data types cannot be used in the WHERE, HAVING, or ON clause, except with the LIKE or IS NULL predicates.
in the sysmessages.description column for error 306.
WORKAROUND
This problem has been corrected in Microsoft SQL Server 2000.
Modification Type: | Major | Last Reviewed: | 12/9/2000 |
---|
Keywords: | kbCodeSnippet kbprb KB271525 |
---|
|