SQL 2000
Hi All,
I import a large flatfile (37 million rows) into SQL using bulkinsert and a formatfile.
I have a few columns that are dates, but they are in the format of ddmmyyyy.
Currently I am importing them them to a varchar 8 column. Then I thought of converting them to a datetime, but it's proving tedious as updating 37 million rows is taking forever.
I was wondering if there is a way of importing the ddmmyyyy directly in to a datetime field?
Any info appreciated.
Michael
Hi All,
I import a large flatfile (37 million rows) into SQL using bulkinsert and a formatfile.
I have a few columns that are dates, but they are in the format of ddmmyyyy.
Currently I am importing them them to a varchar 8 column. Then I thought of converting them to a datetime, but it's proving tedious as updating 37 million rows is taking forever.
I was wondering if there is a way of importing the ddmmyyyy directly in to a datetime field?
Any info appreciated.
Michael