ImportDate = DATETIME
ImportComplete = BIT
which is the most efficient query
OR
rason I ask is that "Microsoft strongly recommended that we change it to the latter because 1 is an integer by default"
anyone know why the latter would be the case ?
[blue]DBomrrsm[/blue] ![[bandito] [bandito] [bandito]](/data/assets/smilies/bandito.gif)
ImportComplete = BIT
which is the most efficient query
Code:
SELECT ImportDate FROM Import WHERE ImportComplete = 1
Code:
SELECT ImportDate FROM Import WHERE ImportComplete = CAST(1 AS BIT)
rason I ask is that "Microsoft strongly recommended that we change it to the latter because 1 is an integer by default"
anyone know why the latter would be the case ?
![[bandito] [bandito] [bandito]](/data/assets/smilies/bandito.gif)
![[bandito] [bandito] [bandito]](/data/assets/smilies/bandito.gif)