I have been given the task of selecting from a small database (28,000 records) certain records that indicate a date over under 6 years old. The only problem is that the DBA didn't make the column a datetime field when he designed the database, he made an nvarchar. So when I'm trying to use the DateAdd function, it will convert some fine, but others it will error out on. for instance it can convert 1/1/2002 to datetime just fine, but not "Sept. 10 1999". AND furthermore there are about 1000 null values for the date (when the indicated field was irrelevant to the record). Also note that by date I don't mean the time of record creation, it's an arbitrary field indicating a date related to the record.
Is there any way possible to convert such a row to datetime? it would need to convert all the character fields along with the nulls, but I don't think those will matter. Is there a 3rd party program? there has to be some way to do it.
thanks in advance.
Is there any way possible to convert such a row to datetime? it would need to convert all the character fields along with the nulls, but I don't think those will matter. Is there a 3rd party program? there has to be some way to do it.
thanks in advance.