dbTalk Databases Forums  

SSIS Convert Nov to 11

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss SSIS Convert Nov to 11 in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John Goalby
 
Posts: n/a

Default SSIS Convert Nov to 11 - 11-14-2005 , 01:24 PM






Hi,

I want to use Integration Services to import a weblog file. The date
format
uses the 3 letter abbreviation for the month (jan, feb, etc).

I cannot see a simple way to convert that to the numeric equivalent so
that
I can import it into SQL Server.

It seems that I could create a table to do the mappings and use a
lookup
transformation. Is there something else built-in for months?

Alternatively, if there is an easier way to import dates in this
format:

11/Nov/2005:00:20:25

I would be eager to hear it.

Any pointers in the right direction would be appreciated.

Thanks!

John.


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: SSIS Convert Nov to 11 - 11-15-2005 , 02:53 PM






You almost wnt something like this I think

http://wiki.sqlis.com/default.aspx/S...Functions.html

Allan

"John Goalby" <jgoalby (AT) gmail (DOT) com> wrote


Quote:
Hi,

I want to use Integration Services to import a weblog file. The date
format
uses the 3 letter abbreviation for the month (jan, feb, etc).

I cannot see a simple way to convert that to the numeric equivalent so
that
I can import it into SQL Server.

It seems that I could create a table to do the mappings and use a
lookup
transformation. Is there something else built-in for months?

Alternatively, if there is an easier way to import dates in this
format:

11/Nov/2005:00:20:25

I would be eager to hear it.

Any pointers in the right direction would be appreciated.

Thanks!

John.


Reply With Quote
  #3  
Old   
John Goalby
 
Posts: n/a

Default Re: SSIS Convert Nov to 11 - 11-17-2005 , 11:34 AM



Quote:
Hi,

I want to use Integration Services to import a weblog file. The date
format
uses the 3 letter abbreviation for the month (jan, feb, etc).

John.


You almost wnt something like this I think

http://wiki.sqlis.com/default.aspx/S...nDateFunctions....

Allan
These functions look one-way, going from a date to the month name.

I think I will end up using a script component.

Thanks

John.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.