dbTalk Databases Forums  

Disabling all the steps

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


Discuss Disabling all the steps in the microsoft.public.sqlserver.dts forum.



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

Default Disabling all the steps - 08-19-2004 , 09:49 AM






Hi!
Is there any way to disable all the remaining steps on a package?
I have about 20 steps and I didn't want to disable one by one.
Thank you!
Eduardo



Reply With Quote
  #2  
Old   
Ilya Margolin
 
Posts: n/a

Default Re: Disabling all the steps - 08-19-2004 , 03:48 PM






Eduardo,

You need to disable only root step(s). Subsequent steps would not be
executed.

Ilya

"Eduardo Greco" <eduardo (AT) persocom (DOT) com.br> wrote

Quote:
Hi!
Is there any way to disable all the remaining steps on a package?
I have about 20 steps and I didn't want to disable one by one.
Thank you!
Eduardo





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

Default Re: Disabling all the steps - 08-19-2004 , 03:54 PM



Grab the Package object
Now the steps
Now set the Disable property

dim pkg, stp


SET pkg = DTSGlobalVariables.Parent

FOR EACH stp in pkg.Steps
If stp.Name <> "My Name" THEN
stp.DisableStep = True
End If
NEXT

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Eduardo Greco" <eduardo (AT) persocom (DOT) com.br> wrote

Quote:
Hi!
Is there any way to disable all the remaining steps on a package?
I have about 20 steps and I didn't want to disable one by one.
Thank you!
Eduardo





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

Default Re: Disabling all the steps - 08-19-2004 , 03:55 PM



The only problem there would be if there was no workflow constraining the
steps

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Ilya Margolin" <ilya_no_spam_ (AT) unapen (DOT) com> wrote

Quote:
Eduardo,

You need to disable only root step(s). Subsequent steps would not be
executed.

Ilya

"Eduardo Greco" <eduardo (AT) persocom (DOT) com.br> wrote in message
news:%237EqHyhhEHA.3964 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Hi!
Is there any way to disable all the remaining steps on a package?
I have about 20 steps and I didn't want to disable one by one.
Thank you!
Eduardo







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.