Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 15264

Consideration while KILLing a transaction

$
0
0

Hi,

I have a questions related to KILLing a transaction.

1. Can i directly Kill a transaction if I found it is the culprit in the blocking chain. Do I need to intimate the end-users of Killing the head blocker. What are the considerations to be taken care before I Kill a transaction and what are the side-effects of a transaction based on DML or SELECT. If it is SELECT can I directly KILL it.

2. If I killed a DML transaction, how long the locks will be held. Are they going get released immediately. For eg. in sql 2000, I started a DTS package job and after sometime I stopped in the middle thinking that it is running slow or I missed a pre-req step which is needed before kicking of DTS job (for instance , i need to run a house keeping sql script before I start running the DTS job). Is there any change in sql 2000 based locking and sql 2005 locking or do I need to restart sql server to release the locks.

3. How can I tell how long my KILL command  is going to take or how much work % it has completed.


Viewing all articles
Browse latest Browse all 15264

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>