Guest_imported
New member
- Jan 1, 1970
- 0
Hi,
I am trying to convert a field from a varchar to a datetime
field: Problem is, some of the records are not of a valid date so when I try and convert I get an error. Is there a T-Sql statement that I could write that would convert the field to datetime and just make the invalid records null?
Otherwise I have to go thur all the records and correct the data. This could take days!!
thanks for your help!!
NOTE: I have always had problems w/ date fields :-(
--scott
I am trying to convert a field from a varchar to a datetime
field: Problem is, some of the records are not of a valid date so when I try and convert I get an error. Is there a T-Sql statement that I could write that would convert the field to datetime and just make the invalid records null?
Otherwise I have to go thur all the records and correct the data. This could take days!!
thanks for your help!!
NOTE: I have always had problems w/ date fields :-(
--scott