dbTalk Databases Forums  

Changing task names

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


Discuss Changing task names in the microsoft.public.sqlserver.dts forum.



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

Default Changing task names - 11-10-2003 , 06:24 PM






What's the proper procedure for changing task names to something more
meaningful to users? I'm finding that when I change the name of a task (in
disconnected edit) from 'DTSTask_DTSDataPumpTask_1' to something else, I get
an error running the package because SQL Server can't find the task under
it's old name.



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

Default Re: Changing task names - 11-10-2003 , 10:15 PM






In article <#xEekp#pDHA.1488 (AT) TK2MSFTNGP12 (DOT) phx.gbl>, David Morrison
<me (AT) nospam (DOT) com> writes
Quote:
What's the proper procedure for changing task names to something more
meaningful to users? I'm finding that when I change the name of a task (in
disconnected edit) from 'DTSTask_DTSDataPumpTask_1' to something else, I get
an error running the package because SQL Server can't find the task under
it's old name.

If you change the task name, you will need to ensure that all references
to that task by name are also updated. There is only one I know of and
that is on the step object, also shown in Disco Edit, for the TaskName
property.

I always update three properties-

Task
..Name

Step
..Name
..TaskName

The step name property is what you see in the log so that is the most
useful one to change, but I always do all three.

Note if you have workflow as well, then there is another reference to
the step name. On the preceding step the precedence constraints
collection, see the constraint that links to the step you are working
with.
To be honest I remove all workflow before changing names because working
backwards to find the workflow constraints is too much like hard work!

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
  #3  
Old   
David Morrison
 
Posts: n/a

Default Re: Changing task names - 11-11-2003 , 06:49 PM



Thanks Darren. I'll see if that does it.

It sure would be nice if it was possible to set the name at creation instead
of having to go back and change the names that SQL Server arbitrarily
assigns.

"Darren Green" <darren.green (AT) reply-to-newsgroup-only (DOT) uk.com> wrote in
message news:nPqHvQSXJGs$Ewh4 (AT) sqldts (DOT) com...
Quote:
In article <#xEekp#pDHA.1488 (AT) TK2MSFTNGP12 (DOT) phx.gbl>, David Morrison
me (AT) nospam (DOT) com> writes
What's the proper procedure for changing task names to something more
meaningful to users? I'm finding that when I change the name of a task
(in
disconnected edit) from 'DTSTask_DTSDataPumpTask_1' to something else, I
get
an error running the package because SQL Server can't find the task under
it's old name.

If you change the task name, you will need to ensure that all references
to that task by name are also updated. There is only one I know of and
that is on the step object, also shown in Disco Edit, for the TaskName
property.

I always update three properties-

Task
.Name

Step
.Name
.TaskName

The step name property is what you see in the log so that is the most
useful one to change, but I always do all three.

Note if you have workflow as well, then there is another reference to
the step name. On the preceding step the precedence constraints
collection, see the constraint that links to the step you are working
with.
To be honest I remove all workflow before changing names because working
backwards to find the workflow constraints is too much like hard work!

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org




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.