Casting

  • how should i cast package name variable and getdate.....can anyone give mee the exact expressions ...new to ssis

  • quillis131 (3/7/2011)


    how should i cast package name variable and getdate.....can anyone give mee the exact expressions ...new to ssis

    Please take a little more care with your question.

    What do you mean by 'package name variable'?

    What do you want to cast it from/to?

    You can't cast getdate - it's a function. What do you mean?


  • i need a expressions with my package name (using system variable) and today's date..

    ex ABC110307 this should be my outcome

    where ABC - package name

    110307 is today's date

  • Try this:

    @[System::PackageName] + RIGHT((DT_STR,4,1252)YEAR(GETDATE()),2) + RIGHT("0" + (DT_STR,2,1252)MONTH(GETDATE()),2) + RIGHT("0" + (DT_STR,2,1252)DAY(GETDATE()),2)


  • thank you ....

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

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