I have a huge table that stores a date in a varchar column in the following format...
1/18/00 3:58:58 PM
Some dates were entered only in the following format
1/18/00
I didn't design the db and for reasons of compatibility in the extraction layer I cannot convert the column.
I need to query on the the date field for things like finding out what has happened since 1/15/01. I thought I would use something like...
SELECT * from table where convert(datetime, datefield) > 'somedate'
But that fails with the typical "conversion of char data to date would have resulted in an out of range date" blah blah blah....
So what to do? (no stored procs please)
tha_mink