Home Forums Article Discussions Article Discussions by Author Discuss content posted by Gerald Britton Fastest way to convert strings 'TRUE' and 'FALSE' to bit-values 1 and RE: Fastest way to convert strings 'TRUE' and 'FALSE' to bit-values 1 and
Carlo Romagnano
SSC-Insane
Points: 22848
More actions
June 5, 2014 at 1:08 am
#1719099
Thanks!
declare @t varchar(10) = 'FALSE'
,@b bit
SET @b = CAST(@t as bit)
select @b
WHERE @b = 'FALSE'