Passing Date vriable between SSIS steps

  • Hi

    Fellows

    I have to Pass date variable between steps of SSIS steps. How do i do that

    Scenario: I am taking max date from Server A( i am the SA in that box). I have to use the same date in next steps where connection belongs to Server B, where i have access to only one Database.

    i am trying to retrieve the date from server A by using following query

    @Lastdate=(select CONVERT(datetime, CONVERT(Varchar(10),?,101)))

    It gives me the error,

    'The query failed to parse. Syntax error, permission violation , or other non specific error'

    Could somebody provide some insight on this

    Thanks

    Simon

  • are you using ssis for this

    if so assign the date variable using the result set mapping in execute sql task

    use this variable further

    Regards
    Venkat
    http://sqlblogging.blogspot.com[/url]

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

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