I am loading in a bunch of data that contains dates formatted as shown below:
00-JAN-0000
00-FEB-0000
00-MAR-0000
00-APR-0000
00-MAY-0000
00-JUN-0000
00-JUL-0000
00-AUG-0000
00-SEP-0000
00-OCT-0000
00-NOV-0000
oo-DEC-0000
SQL cannot automatically convert these dates because it does not recognize the month part of the date. I have approx 50,000 records to import. Any ideas?
OP has said in a comment:
The data I am working with are
client’s date of birth. Since I did
not want to post someone’s DOB online,
I masked the day and the year with 0s
but I left the month intact as that is
what is causing the problem.
How are you importing?
Are you sure one of the dates isn’t a bit iffy? your (real-non-zero) date dd-mmm-yyyy format should be accepted by SQL server;