sql server - Getting 'An Expression of non-boolean type specified in a context where a condition is expected' error using an IIF statement in a WHERE clause -


the iif statement below throwing 'an expression of non-boolean type specified in context condition expected' error.

how return boolean value using iif statement within clause in sql server? tried casting result bit didn't work...

delete assignments     assignedobjecttypeid=@assignedobjecttypeid , assignedobjectid=@assignedobjectid      , targetobjecttypeid=201 , iif(@entity null,1,0) 


Comments

Popular posts from this blog

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -