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]
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 ?
[blue]DBomrrsm[/blue]