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, 2011 at 05:14 AM in Default

avatar image

2.8k 56 65 71

(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, 2011 at 05:52 AM

avatar image

Usman Butt
14.9k 6 13 21

(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



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Dec 21, 2011 at 05:14 AM

Seen: 1472 times

Last Updated: Dec 21, 2011 at 06:01 AM

Copyright 2018 Redgate Software. Privacy Policy