blogs.conchango.com

welcome to the conchango blogging site
Welcome to blogs.conchango.com Sign in | Join | Help
in Search

SSIS Junkie

SSIS: What does DTSER_SUCCESS (0) mean?

Whenever you run a SSIS package from the command-line you will see some output that looks similar to the following in your console window:

image

Or preferably you'll get this:

image

 

Have you ever wondered what that phrase "DTSER_SUCCESS (0)" or "DTSER_FAILURE (1)" actually means? It seems a strange thing to have output doesn't it? Well actually the explanation is all rather simple. The result of the package is defined by an enumeration called DtsExecResult which contains the execution result of a SSIS container (and remember, the package is in itself a container).

Here are the possible values of that enumeration (taken from Books Online):

Member name Description
Canceled The task was cancelled. (Value = 3)
Completion The task ran to completion. (Value = 2)
Failure The task failed. (Value = 1)
Success The task ran successfully. (Value = 0)

So in other words, the success or failure of the package is more accurately described as the success or failure of the package container. Knowing that it is fairly straightforward to work out what DTSER_SUCCESS (0) means. "DTSER" stands for DtsExecResult, "SUCCESS" is the name of the enumeration member and the zero refers to the enumeration value for DtsExecResult.Success.

So there you go. Now you know.

-Jamie

Published 25 May 2008 21:03 by jamie.thomson

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

 

douglasl said:

It annoys me to no end that the auto-generated syntax in BOL's API documentation not only fails to include the numeric value for members of enumerations, but makes them still more impossible to guess at by listing the members in alphabetical rather than numeric order.

This is why we added the topic "Using Enumerated Constants in Property Expressions", which lists the numeric values (expected in BLOCKED EXPRESSION for many of the most common enums in Integration Services.   http://msdn.microsoft.com/en-us/library/ms345178(SQL.100).aspx

-Doug

May 26, 2008 00:03
 

jamie.thomson said:

Doug,

Yeah, I thought the same thing yesterday when researching this blog entry. Its crazy that they don't appear in value order.

-Jamie

May 26, 2008 10:50

Leave a Comment

(required) 
(optional)
(required) 
Submit

This Blog

Syndication

News

Powered by Community Server (Personal Edition), by Telligent Systems