scripter73
Programmer
Hi,
I'm trying to delete entries out of a SQL table called FACTOID. It has three fields:
- FactoidID (datatype 'int'; Identity=1)
- DataFact ('ntext')
- ShowDate ('datetime')
My .ASP file contains the SQL Delete code:
sqltext="DELETE from factoid where DataFact='<text value here>'"
.....
set record_pointer=connection_var.execute(sqltext)
I get the following ERROR:
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. I'm not exactly sure what this means. Is there a problem with my sql command or with how I defined my table columns?
Any help provided is much appreciated.
Thanks.
I'm trying to delete entries out of a SQL table called FACTOID. It has three fields:
- FactoidID (datatype 'int'; Identity=1)
- DataFact ('ntext')
- ShowDate ('datetime')
My .ASP file contains the SQL Delete code:
sqltext="DELETE from factoid where DataFact='<text value here>'"
.....
set record_pointer=connection_var.execute(sqltext)
I get the following ERROR:
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. I'm not exactly sure what this means. Is there a problem with my sql command or with how I defined my table columns?
Any help provided is much appreciated.
Thanks.