dbTalk Databases Forums  

step object

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


Discuss step object in the microsoft.public.sqlserver.dts forum.



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

Default step object - 08-18-2005 , 04:04 PM






I am fairly new to using DTS packages and I have Package logs enabled in my
DTS package which has a lot of "Execute SQL Tasks". When one of these tasks
fail it shows up in the error log, but the step name would as generic as
"DTSStep_ExecuteSQLTask_23" and sometimes its difficult for me to track down
which task failed. I tried to figure out a way to map this step name to task
but I couldnt. So, my questions is,is there a way to get this information
from a table in master db(or elsewhere, if its not stored in master db) or
another tool that I could use to figure this out.

Thanks,
-Dinakar.

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: step object - 08-18-2005 , 04:23 PM






There is nothing outside of the package that would tell you this. It is
possible to change these names using Disconnected edit but this should not
really be attempted after you have built a package as you are guaranteed to
miss something and your package will no longer work.

Each step has a TaskName property so you could use some code to loop this up
although even armed with the TaskName it may be equally as cryptic. You
might want to look at the Description property though.

Allan



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

Quote:
I am fairly new to using DTS packages and I have Package logs enabled in my
DTS package which has a lot of "Execute SQL Tasks". When one of these
tasks
fail it shows up in the error log, but the step name would as generic as
"DTSStep_ExecuteSQLTask_23" and sometimes its difficult for me to track
down
which task failed. I tried to figure out a way to map this step name to
task
but I couldnt. So, my questions is,is there a way to get this information
from a table in master db(or elsewhere, if its not stored in master db) or
another tool that I could use to figure this out.

Thanks,
-Dinakar.



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

Default Re: step object - 08-18-2005 , 06:03 PM



Allan Mitchell wrote:
Quote:
There is nothing outside of the package that would tell you this. It is
possible to change these names using Disconnected edit but this should not
really be attempted after you have built a package as you are guaranteed to
miss something and your package will no longer work.

Each step has a TaskName property so you could use some code to loop this up
although even armed with the TaskName it may be equally as cryptic. You
might want to look at the Description property though.

Allan



"D" <D (AT) discussions (DOT) microsoft.com> wrote in message
news:CE739E81-03F6-4D3C-8F52-90FBCFE06B1F (AT) microsoft (DOT) com...

I am fairly new to using DTS packages and I have Package logs enabled in my
DTS package which has a lot of "Execute SQL Tasks". When one of these
tasks
fail it shows up in the error log, but the step name would as generic as
"DTSStep_ExecuteSQLTask_23" and sometimes its difficult for me to track
down
which task failed. I tried to figure out a way to map this step name to
task
but I couldnt. So, my questions is,is there a way to get this information
from a table in master db(or elsewhere, if its not stored in master db) or
another tool that I could use to figure this out.

Thanks,
-Dinakar.



Not too big a deal, I think. If you delete the workflow constraints it
is easy to rename the step through Disco Edit. The workflow is what
trips people up. Note, deleting the constraints does not loose any
workflow scripts, so it is quite easy.

Rename the step, and you may also want to rename the task, but then do
the TaskName property on the step as well.

I do three properties-

Task Object
- Name property


Step Object
- Name property
- TaskName property (Relates step to task, so match to Task.Name as above)


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


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.