Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
SQL Server 2005 Integration Services
»
Split up date in conditional split SSIS
Split up date in conditional split SSIS
Rate Topic
Display Mode
Topic Options
Author
Message
dario.quinn
dario.quinn
Posted Thursday, March 21, 2013 5:55 AM
Forum Newbie
Group: General Forum Members
Last Login: Friday, May 17, 2013 6:02 AM
Points: 4,
Visits: 19
Just now I have a date column with format of 2011-05-25 I would like to split this into three columns:
Year Month Day
2011 05 25
Can this be done using SSIS ? or even in SQL OLE DB?
Post #1433744
Phil Parkin
Phil Parkin
Posted Thursday, March 21, 2013 6:37 AM
SSCarpal Tunnel
Group: General Forum Members
Last Login: Today @ 1:17 PM
Points: 4,234,
Visits: 9,470
Check out the T-SQL Year(), Month() and Day() functions - you can do this at source.
____________________________________________________________________________________________
Help us to help you. For better, quicker and more focused answers to your questions, consider following the advice in this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
If you are asking for help and your post does not contain a question, you should expect responses which do not contain any answers. Put a question mark in there somewhere - it's not rocket science.
Post #1433754
Koen Verbeeck
Koen Verbeeck
Posted Thursday, March 21, 2013 2:48 PM
SSCrazy Eights
Group: General Forum Members
Last Login: Today @ 9:06 AM
Points: 9,367,
Visits: 6,465
dario.quinn (3/21/2013)
Just now I have a date column with format of 2011-05-25 I would like to split this into three columns:
Year Month Day
2011 05 25
Can this be done using SSIS ? or even in SQL OLE DB?
TSQL is the easiest option, but if you're feeling adventurous you can also do it in a derived column using similar functions.
How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
Member of
LinkedIn
. My blog at
LessThanDot
.
MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1434035
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.