Showing posts with label entirely. Show all posts
Showing posts with label entirely. Show all posts

Sunday, February 12, 2012

Convert DateTime field

Hi,

I'm not entirely sure that this is the correct forum for this question but it relates to my SSIS package.

I am currently implementing an SSIS package to replace an existing stored procedure which is getting very unmanageable. I have come across a part in the stored procedure which performs a convert(datetime, @.Parameter3, 14) on a string of data. The string value of @.Parameter3 is in the following format HH:mm:ss.

The problem i am having is how to implement similar functionality in a script task. everything i have tried involving the datetime object returns 1,1,0001, 00:00:00 or similar. It never seems to get the time so that it can be passed to a datetime field in the database.

Thanks in advance for any help that is provided.

GrantAh. The data conversion task seems to have resolved my problem. Sorry.

Grant