Exec of store proc in ssis

  • Hi, i want to execute the store proc exec [dbo].[PartitionSwap] 'tablename', 2010-12-31T23:59:59.000 in SSIS.

    Actually i am trying to exec the given store proc by giving parameters. The store porc seems to be exec [dbo].[PartitionSwap] ?, ?. So i can assign variable to the parameters. but what the problem is am not able to take the datetime including with seconds like 2010-12-31T23:59:59.000. in SSIS.

    Will any one suggest me how can i include seconds in datetime. Plz, that would be great.

    thank you.

  • do you mean seconds (:59 ) or milliseconds as well (:59.000) ?

  • millis seconds as well..... the given date is my boundary value for my partitions. I need date including seconds to.

  • sadly SSIS variavles only go down to 1 second intevals.

    one workaround to include milli-seconds is to convert the value to a Varchar and store this in a string variable and then covert back to time when you run the strored proc.

  • I hope we cant convert varchar to datetime

  • ok i dnt want milliseconds but it it possible to get above boundary without millis seconds. If yes how?

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply