THE SQL Server Blog Spot on the Web

Welcome to SQLblog.com - The SQL Server blog spot on the web Sign in | |
in Search

Davide Mauri

A place for my thoughts and experiences the Microsoft Data Platform

DTLoggedExec 1.1.2008.4 SP2 released!

I’ve released couple of hours ago the SP2 of my DTLoggedExec tool.

For those who don’t know it, it’s a DTEXEC replacement, useful to execute SSIS and having logging provided right from the engine and not from the package itself.

More info can be found here:

http://dtloggedexec.codeplex.com/

This SP2 release add an important feature to the CSV Log Provider. It's now possible to store a personalized label into each log, in order to make it easy to identify or group logs.

Let's say, for example, that you have 10 packages in your ETL solution, and each time you have to load your data, you need to execute all those 10 packages. In other words , you have a batch made of 10 packages. It would be nice if all logs - one for each package - can be identified as a whole and grouped together, in order to quickly identify all the log of a articular batch.

This will make things easier when you want to know the overal time consumed by each batch execution.

The new "ExecutionLabel" attribute will help to achieve this. A useful ExecutionLabel can be obtained using SQL Server Agents Token. For example:

LABEL=$(ESCAPE_SQUOTE(JOBID))_$(ESCAPE_SQUOTE(STRTDT))_$(ESCAPE_SQUOTE(STRTTM))

ChangeLog

  • Updated the CSV Log Provider in order to write the status of the log file in the header.
    • An OPEN status means that the log file is being written.
    • A CLOSED status means that the log files has been written correctly.
    • A file can be loaded into the database log only if is in the CLOSED state.
  • CSV Log files have 2 additional rows in the header: one for the FileStatus and one for the ExecutionLabel values.
    • File format has been update to 4 from 3. (Only the header section of the file has been changed).
  • CSV Log Provider will now display EndTime value to the Console
  • Updated the import-log-data.sql to correctly load file with format 3 (the old one) and 4 (the new one).
  • Updated database schema to version 19 in order to store the new ExecutionLabel value
  • Update samples in order to show how to use the new ExecuteLabel option

As usual the download is available for free here:

http://dtloggedexec.codeplex.com/releases/81526/download/336490

Published Wednesday, February 1, 2012 7:15 PM by Davide Mauri
Filed under: , , ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
(required) 
Submit

About Davide Mauri

Director of Software Development & Cloud Infrastructure @ Sensoria, an innovative smart garments and wearable company. After more than 15 year playing with the Microsoft Data Platform, with a specific focus on High Performance databases, Business Intelligence, Data Science and Data Architectures, he's now applying all his skills to IoT, defining architectures to crunch numbers, create nice user experiences and provide meaningful insights, all leveraging Microsoft Azure cloud. MVP on Data Platform since 2006 he has a very strong background development and love both the ER model and OO principles. He is also a fan of Agile Methodology and Automation, which he tries to apply everywhere he can, to make sure that "people think, machines do".

This Blog

Syndication

Privacy Statement