dbTalk Databases Forums  

Does canceling a DTS Package also rollback

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


Discuss Does canceling a DTS Package also rollback in the microsoft.public.sqlserver.dts forum.



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

Default Does canceling a DTS Package also rollback - 09-18-2003 , 10:15 AM






I've had a DTS Package running for over a day now. It was 20 hours
into an "Execute SQL Task" and I canceled the package because there is
an error.

In the past, the package has taken almost a day to cancel. I fear that
SQL is trying to rollback all the SQL in that task.

Is there a way to force SQL Server to cancel everything? I don't care
if it's only partially processed.

Reply With Quote
  #2  
Old   
Peter Hall
 
Posts: n/a

Default Re: Does canceling a DTS Package also rollback - 09-18-2003 , 10:42 AM






You can find the spid the package is running as using sp_who2 and kill that
spid. using kill <spid>

"John" <john.hurrell (AT) frontiercorp (DOT) com> wrote

Quote:
I've had a DTS Package running for over a day now. It was 20 hours
into an "Execute SQL Task" and I canceled the package because there is
an error.

In the past, the package has taken almost a day to cancel. I fear that
SQL is trying to rollback all the SQL in that task.

Is there a way to force SQL Server to cancel everything? I don't care
if it's only partially processed.



Reply With Quote
  #3  
Old   
Stressed
 
Posts: n/a

Default Re: Does canceling a DTS Package also rollback - 09-18-2003 , 10:56 AM



This will still cause a rollback of whatever has been written.

Try, if possible, calling dts package with variables, essentially batching
it
so a smaller amount of work is performed with each iteration.

HTH

"Peter Hall" <pete_ha11 (AT) hotmail (DOT) com> wrote

Quote:
You can find the spid the package is running as using sp_who2 and kill
that
spid. using kill <spid

"John" <john.hurrell (AT) frontiercorp (DOT) com> wrote in message
news:9025d995.0309180715.6dbbfa3a (AT) posting (DOT) google.com...
I've had a DTS Package running for over a day now. It was 20 hours
into an "Execute SQL Task" and I canceled the package because there is
an error.

In the past, the package has taken almost a day to cancel. I fear that
SQL is trying to rollback all the SQL in that task.

Is there a way to force SQL Server to cancel everything? I don't care
if it's only partially processed.





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

Default Re: Does canceling a DTS Package also rollback - 09-18-2003 , 02:46 PM



In article <9025d995.0309180715.6dbbfa3a (AT) posting (DOT) google.com>, John
<john.hurrell (AT) frontiercorp (DOT) com> writes
Quote:
I've had a DTS Package running for over a day now. It was 20 hours
into an "Execute SQL Task" and I canceled the package because there is
an error.

In the past, the package has taken almost a day to cancel. I fear that
SQL is trying to rollback all the SQL in that task.

Is there a way to force SQL Server to cancel everything? I don't care
if it's only partially processed.
There may be a rollback in SQL, or even at the DTC level if you have set
package transactions on.

You should be able to see any rollback in the server by using sp_who2 on
the server.

You could try killing any process you see from DTS, or just restart the
SQL Server service if that fails to kill the connections.

If there are no connections from DTS to SQL Server then it is probably
hung. Restart the machine or End Task for Enterprise Manager.

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