Groups | Blog | Home
all groups > sql server dts > may 2004 >

sql server dts : DTS Import text file date conversion


Rhadagast
5/6/2004 9:11:03 PM
I have a semi colon delimited file containing a date field in this format

blah;Wed May 05 19:29:53 2004;blah;bla

My DTS import always fails when I use the following setting
Sourc
ddd MMMM dd hh:mm:ss yyy
Destinatio
yyyy-MM-d

the error is: Can not parse data input at 19:29:53 200
I've tried other destination settings with no luck
I would like to get this date reformated so I can do date addition subtraction etc
Any help would be greatly appreciated
Allan Mitchell
5/7/2004 8:53:35 AM
I would be inclined to use an Active Script task and write the conversion
myself.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


[quoted text, click to view]

Isak Dinesen
5/7/2004 11:52:20 AM
I am guessing that you'll need to change "ddd MMMM dd hh:mm:ss yyyy" to "ddd
MMMM dd HH:mm:ss yyyy"...



[quoted text, click to view]

Ben
5/13/2004 1:26:33 PM
'May' is both a short (MMM) and long (MMMM) month name. Check other dates
with longer month names to see which you should be using e.g. Oct (MMM) or
October (MMMM)

[quoted text, click to view]

AddThis Social Bookmark Button