I'm using sql server managment studio 2012
What I'm trying to do is check if string value is a bit if it is then I want to check if this value is greater than 1. here is my code:
(TRY_CONVERT(bit, '2') IS NULL OR TRY_CONVERT(bit, '2') > 1)
For this sample purpose I hardcoded there a string with value.
Anyone can tell me why this doesn't work I mean second condition.