Hey guys, I know this is a basic question but I have tried a lot of things. I imported data from an excel spreadsheet into a 'char' column called 'dob' (aka date of birth) since it wouldn't allow me to import the dates into a regular datetime column. So I have my dates that are formatted as 'mmddyyyy' and have tried the following and always get this error:The conversion of a char data type to a datetime data type resulted in an out-of-range datetime valueI even tried checking my regional settings in Enterprise Manager and they are correct (aka English) and everything is a local database/server on my machine.Here is what I have tried, I created a new column that is datetime formatted called 'dob2' and have received the same error message.--------SELECT CONVERT(CHAR(10), dob, 112) from vrpg_new_patient_relationshipupdate vrpg_new_patient_relationship set dob2 = convert(datetime, dob) update vrpg_new_patient_relationshipset dob2=convert(datetime,convert(char(10),dob,101))update dbo.vrpg_new_patient_relationshipset dob = convert(char(10), convert(datetime, dob2, 3),112)update vrpg_new_patient_relationshipset dob2 = convert(datetime, left(dob,10)) update vrpg_new_patient_relationship set dob2 = cast (dob as datetime) SELECT CAST(dob AS datetime) from vrpg_new_patient_relationship
Help?