CFF KB - Carrz-Fox-Fire Promotions Knowledge Base
CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.Knowledge Base
- Breadrumbs:
Microsoft OLE DB Provider for SQL Server (0x80040E14) An expression of non-boolean type specified in a context where a condition is expected, near
- Article ID:
77 - Date Created
Friday, December 24, 2010 - This Article Has been Viewed
1755 times - Short Desc
When writing your SQL Query Statement you have to make sure that you have an = sign for your value. - Details
When writing your SQL Query Statement, you may sometimes leave out important key characters that are required in making your Query Work.
Microsoft OLE DB Provider for SQL Server (0x80040E14)
An expression of non-boolean type specified in a context where a condition is expected, near 'maid'.
/My.asp, line 14 - Recreate Issue
To resproduce this error.
<%
sql.commandtext="select col1, col2 from table1 where col1"
%>
The above will give you the error, as you can tell, the "where col1" does not have no value (or) = sign. - Resolve Issue
To resolve this issue and write your code with the appropriate conditions.
<%
sql.commandtext="select col1, col2 from table1 where col1=?"
%>
As you can see in the above, we have our col1=?
Share With Friends (Updated 6-8-2010)
Recent Articles
All Topics
- Coming Soon - Knowledge Exchange
Trending Articles
- Microsoft VBScript runtime error '800a0046' Permission denied FileSystemObject 24695
- Microsoft OLE DB Provider for SQL Server error '80040e57' String or binary data would be truncated. or The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data. 21297
- ADODB.Parameters error '800a0e7c' Parameter object is improperly defined 19544
- After Effects warning: Audio conforming failed for the following file .cfa. Perhaps due to disk space 17785
- The backup set holds a backup of a database other than the existing 16825