x
login about faq Site discussion (meta-askssc)

DateTime to Small Datetime

Hi , I have one of the columns as Datetime field which i need to type cast to small date time in SSIS . I can not change this in source query since its from a flat file. Please provide any possible suggestions.

Thnaks, Kannan

more ▼

asked Dec 21 '11 at 05:14 AM in Default

aRookieBIdev gravatar image

aRookieBIdev
2k 24 39 46

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

You did not specify the destination? If that is a table, then by handling the out of range values (Redirect those rows) and nulls (either by retaining nulls OR some other way), there should not be any problem. you could specify DT_DBTIMESTAMP for the source column.

more ▼

answered Dec 21 '11 at 05:52 AM

Usman Butt gravatar image

Usman Butt
13.8k 6 8 14

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x749
x84
x22

asked: Dec 21 '11 at 05:14 AM

Seen: 638 times

Last Updated: Dec 21 '11 at 06:01 AM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.