Hooray, it finally worked, using style 120:
INSERT INTO CISMast
([Out_date_Billed])
select
convert(datetime,out_date_billed,120)
from cis_newfile
where isdate(out_date_billed) = 1
Thanks, guess it was just a matter of finding the right combo of everything.
I've tried the above suggestions, and still keep getting the overflow error. Could it have anything to do with the number of records? Does SQL Server 2005 have some sort processing limitation?
I have a file of approximately a million records that was imported from a mainframe file. I'm trying to convert a field that's in a format like 20070530 - ie, YYYYMMDD, in order to be able to do date calculations on it. I don't care how it looks, I just care if internally it's a real datetime...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.