update voterreg
set dob =
case [date of birth]
when isdate([date of birth]) then convert (datetime,[date of birth])
else null
end
I am getting error with this update
Date of Birth : 07/26/1978 --- varchar(15)
i need to convert 15 million records to datetime, I created another field in the same table called dob and would like to update it using the script. it seems to be missing more controls. . . need help
thank you
set dob =
case [date of birth]
when isdate([date of birth]) then convert (datetime,[date of birth])
else null
end
I am getting error with this update
Date of Birth : 07/26/1978 --- varchar(15)
i need to convert 15 million records to datetime, I created another field in the same table called dob and would like to update it using the script. it seems to be missing more controls. . . need help
thank you