dbTalk Databases Forums  

package last run date

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


Discuss package last run date in the microsoft.public.sqlserver.dts forum.



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

Default package last run date - 02-18-2009 , 11:44 PM






SQL2k sp4

Is it possible to determine when a DTS package was last run? We have a lot
of packages, and we're sure some are no longer needed. But we don't know
for sure so we're hoping there is a way to determine when they were last
run.

Thanks, Andre


Reply With Quote
  #2  
Old   
tbradshaw via SQLMonster.com
 
Posts: n/a

Default Re: package last run date - 02-19-2009 , 04:29 PM






Hello Andre,

Are these packages run by a SQL Agent job, or some other scheduling means?
Perhaps you can examine the history of those jobs. The Application/Event Log
might contain information too.

The sure-fire way I use is to use package logging. That way I can examine
the run-times of any package. To do this:

Right-click in designer window not on any icon
Properties
Logging tab
I use 'Error Handling' and point to a file
Note checkbox 'Write completion status to event log'

If you point all your packages to separate log files, you can examine
separate modification dates and get a good idea when packages run.

Let us know how things make out.

Regards,
Tom

Thomas Bradshaw
Data Integration Services
MyWebGrocer LLC


Andre wrote:
Quote:
SQL2k sp4

Is it possible to determine when a DTS package was last run? We have a lot
of packages, and we're sure some are no longer needed. But we don't know
for sure so we're hoping there is a way to determine when they were last
run.

Thanks, Andre
--
Message posted via http://www.sqlmonster.com



Reply With Quote
  #3  
Old   
Andre
 
Posts: n/a

Default Re: package last run date - 02-20-2009 , 09:43 AM



Thanks for the reply. The jobs have been run manually, so without logging
I'm thinking that I have no way of currently knowing when one has been run.
Please correct me if I'm wrong.

Andre


Reply With Quote
  #4  
Old   
tbradshaw via SQLMonster.com
 
Posts: n/a

Default Re: package last run date - 02-20-2009 , 11:10 AM



Hello Andre,

You are correct. For manually run DTS packages, there is no way of knowing
unless you either:

- Purposely log to a file (that Error File Pathname)
- Write to Application Event Log (that check box)

Either way requires a visit/mod to each package.

Best Regards,
Tom

Thomas Bradshaw
Data Integration Services
MyWebGrocer LLC

--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...r-dts/200902/1


Reply With Quote
  #5  
Old   
hfdev
 
Posts: n/a

Default RE: package last run date - 02-20-2009 , 11:42 AM



I run my "child packages" from a "master package" and have the master update
a table with the "Last Run Date & Time" so I know which chile packages
completed and which ones didn't run.

You could make each child package update a table with it's last run time too.

HTH
--
Josh Blair (hfdev)
HydraForce, Inc.


"Andre" wrote:

Quote:
SQL2k sp4

Is it possible to determine when a DTS package was last run? We have a lot
of packages, and we're sure some are no longer needed. But we don't know
for sure so we're hoping there is a way to determine when they were last
run.

Thanks, Andre


Reply With Quote
  #6  
Old   
Andre
 
Posts: n/a

Default Re: package last run date - 02-20-2009 , 12:32 PM



Got it. Thanks to both of you for responding.

Andre

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.