Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Latest DTS Package Log

By mcudmore, 2013/06/18

This script returns the latest package log for the DTS package specified in the @package_name variable.  The interface for viewing DTS package logs through Enterprise Manager is limited in the fact that it doesn't provide textual descriptions of the values for the Step Execute Status and Step Execute Results.  This makes it difficult to trace what caused a package error.  This script will also return the number of rows effected by data transformation tasks, which is not available through Enterprise Manager.

Run this script while waiting for a scheduled package to execute to view the package progress.  We use this script to save run results to a file.

This script will only return results if DTS Package logging has been enabled on the Logging tab of the package properties.  The server this script is run from must be the same server specified in the package logging properties of the package.

Total article views: 590 | Views in the last 30 days: 3
 
Related Articles
FORUM

DTExec: The package execution returned DTSER_FAILURE (1)

DTExec: The package execution returned DTSER_FAILURE (1)

FORUM

Controlling Package execution using script task

Controlling Package execution using script task

FORUM

How to run scripts within an SSIS Package and how to execute an SSIS Package from a SQL script

How to run scripts within an SSIS Package and how to execute an SSIS Package from a SQL script

SCRIPT

Execute a dynamic query without return the resultset

This script illustrate how to execute a dynamic query without return the resultset, but capturing th...

FORUM

Error Executing the package.

Error executing the package , pls help.

Tags
 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones