Re: date format
- From: "Arnie Rowland" <arnie@xxxxxxxx>
- Date: Wed, 21 Jun 2006 10:32:27 -0700
If this is a one time issue, and depending upon the filesize, the easiest
way to handle this just might be to load the file into MS Excel and use the
Edit| Find/Replace capabilitiy to transform the data, save the file as a
csv, and then load it into SQL Server using DTS or however you were planning
to do so.
For example, with the following Replace steps, set the 'By Column' search
criteria, replace 6-mar with 3/1/2006.
Obviously, there will be a few repeated steps to cover all dates, but it may
be quicker than trying to find a way to code SQL to do it. (Yes, it is
possible, but it may not be worth the time and effort.)
Regards,
--
Arnie Rowland, YACE*
"To be successful, your heart must accompany your knowledge."
*Yet Another Certification Exam
"Tiffany" <Tiffany@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E2B0CE2B-C4BF-40CA-A095-D685D780819C@xxxxxxxxxxxxxxxx
Hi,
I received a csv file which has a date column. The date format in this
column is 6-Mar (6 stands for 2006 which means Mar 2006). I will import
this
data to an sql table and i want to date to look like 3/1/2006. Is it
possible. Kindly advise.
Thank you
.
- Prev by Date: Re: Need help in Query -
- Next by Date: Re: date format
- Previous by thread: Re: Need help in Query -
- Next by thread: Re: date format
- Index(es):
Relevant Pages
|
|