What does really happen when we do a BEGIN TRAN in SQL Server 2005?
Posted
by
Misnomer
on Stack Overflow
See other posts from Stack Overflow
or by Misnomer
Published on 2011-01-10T20:28:35Z
Indexed on
2011/01/10
20:54 UTC
Read the original article
Hit count: 285
sql-server-2005
|transactions
Hi all,
I came across this issue or maybe something I didn't realize but I did a Begin Tran
and had some code inside it and never ran a commit or rollback as I forgot about it. That caused all many of the database queries or even just a simple select top 1000
command were just sitting on loading..?
Now it probably has put some locks on the tables I guess since it did not let me query them..but I just wanted to know what exactly happened and what are the practices to be followed here ?
© Stack Overflow or respective owner