dbTalk Databases Forums  

retrieve info from sysdtspackagelog for the currently running pack

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss retrieve info from sysdtspackagelog for the currently running pack in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
LP
 
Posts: n/a

Default retrieve info from sysdtspackagelog for the currently running pack - 05-31-2005 , 06:34 PM






Hello All,

I'm auditing my ETL processes and I want to get the following info about the
currently running dts package from sysdtspackagelog.

select [name], [description], [id], [versionid], [lineagefull], [starttime]
from sysdtspackagelog

Anyone else need this info during execution?

I thought about passing the package name and starttime dateadd(mi, -1,
GetDate()) but that does not seem iron clad enough. Any ideas?



Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: retrieve info from sysdtspackagelog for the currently running pack - 06-01-2005 , 02:58 AM






Turn on "Show lineage variables as source columns" from the Advanced tab of
the package properties. You get new columns in the DataPump, but also
normally get two new global variables. You can then use the lineage guid to
query the table. This is the current execution instance id.


--
Darren Green
http://www.sqldts.com
http://www.sqlis.com


"LP" <LP (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hello All,

I'm auditing my ETL processes and I want to get the following info about
the
currently running dts package from sysdtspackagelog.

select [name], [description], [id], [versionid], [lineagefull],
[starttime]
from sysdtspackagelog

Anyone else need this info during execution?

I thought about passing the package name and starttime dateadd(mi, -1,
GetDate()) but that does not seem iron clad enough. Any ideas?





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.