Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 DateTime Convert During Export

Author  Topic 

LiquidTobi
Starting Member

4 Posts

Posted - 2006-09-10 : 13:52:13
I am trying to export about 1 million records and I would like to convert the datetime values into the mm/dd/yyyy hh:mm:ss format, but I am not sure how to do it.

Registered Linux User #365191

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-09-10 : 14:00:20
CONVERT(varchar, YourDateTimeColumn, 101) + ' ' + CONVERT(varchar, YourDateTimeColumn, 108)


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

LiquidTobi
Starting Member

4 Posts

Posted - 2006-09-11 : 06:33:53
Thank you, that worked very nicely


Registered Linux User #365191
Go to Top of Page
   

- Advertisement -