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

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -