i was just wondering if anyone knows how to select rows where a specified column will come under a casting issue.
ie.
SELECT * FROM ThisTable t
WHERE 0 <> ( select cast(t.value as
datetime) )
the ‘select cast(t.value as datetime)’ would ideally return the result of @@error
to indicate the casting issue has occurred.
does anyone have any idea, because im bloody stumped.
Cheers
ISDATE is your friend, if I understand correctly…