dbTalk Databases Forums  

Cancelling..

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


Discuss Cancelling.. in the microsoft.public.sqlserver.dts forum.



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

Default Cancelling.. - 06-24-2004 , 07:01 AM






SQL / AS is great - but one thing annoys me - if I want to cancel a dts task
it seems as if it never works...it persists on doing a package till the end
and before starting a new package it will cancel and sometimes it just
doesn't get back when cancelled.

Is there someway to make this better - a parameter or something ?

\Michael Vardinghus



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

Default Re: Cancelling.. - 07-01-2004 , 05:50 AM






In message <#fx1VJeWEHA.3988 (AT) tk2msftngp13 (DOT) phx.gbl>, Michael Vardinghus
<michaelvardinghus (AT) notexisting (DOT) com> writes
Quote:
SQL / AS is great - but one thing annoys me - if I want to cancel a dts task
it seems as if it never works...it persists on doing a package till the end
and before starting a new package it will cancel and sometimes it just
doesn't get back when cancelled.

Is there someway to make this better - a parameter or something ?

\Michael Vardinghus


There are no extra magic switches you can use, and to be honest I don't
think this would be a good idea. What you are asking for is a power
button really. If you can safely cancel and operation then a well
written task will implement the event handlers and check the cancel flag
as often as appropriate. In QA, you don't expect a long running query to
be cancelled immediately, since it will often have to perform a rollback
to ensure the data is left in a consistent state. Not all tasks can
support transactions or would you want them to, so in these cases, there
is no other option to let things complete.

--
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   
Michael Vardinghus
 
Posts: n/a

Default Re: Cancelling.. - 07-13-2004 , 01:49 PM



Thanks for the input, Darren..

"Darren Green" <darren.green (AT) reply-to-newsgroup-sqldts (DOT) com> skrev i en
meddelelse news:YC5L+ASfx+4AFw4L (AT) sqldts (DOT) com...
Quote:
In message <#fx1VJeWEHA.3988 (AT) tk2msftngp13 (DOT) phx.gbl>, Michael Vardinghus
michaelvardinghus (AT) notexisting (DOT) com> writes
SQL / AS is great - but one thing annoys me - if I want to cancel a dts
task
it seems as if it never works...it persists on doing a package till the
end
and before starting a new package it will cancel and sometimes it just
doesn't get back when cancelled.

Is there someway to make this better - a parameter or something ?

\Michael Vardinghus



There are no extra magic switches you can use, and to be honest I don't
think this would be a good idea. What you are asking for is a power
button really. If you can safely cancel and operation then a well
written task will implement the event handlers and check the cancel flag
as often as appropriate. In QA, you don't expect a long running query to
be cancelled immediately, since it will often have to perform a rollback
to ensure the data is left in a consistent state. Not all tasks can
support transactions or would you want them to, so in these cases, there
is no other option to let things complete.

--
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.