Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Batch Deletes in Explicit Transaction

$
0
0
Hi SSC,

I ran across a block of code today which does deletes from a table in batches of 5000. Nothing crazy there. However the developer wrapped the entire  set of batches in an explicit transaction, like so:

[code="sql"]
decla

Viewing all articles
Browse latest Browse all 3145

Trending Articles