Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Using package execution time as a variable in next execute sql task

$
0
0

My requirement is i've to fetch the records that are populated after  last package execution date from a table.

To get Last package execution date I'm picking the end_time column from ssisdb -catalog.execution for a package .

Created  one exec sql task.

    Defined as Single row result set

SQL Statement-select max(end_time) from catalog.execution where package_name='package.dtsx' and project_name='Projectname'and status=7

   created a variable name Pkgexecdate .

    Maped this result set variable.

 

In  another exec sql task i've to use this result set variable value in a where condition for a sql statement .

connecton string for both exec sql tasks are not in same server.

How do i achieve this ?

 


SANTHOSH





Viewing all articles
Browse latest Browse all 24688

Trending Articles