Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

ApexSQL Log is showing UPDATE records as DELETE/INSERT pairs for clustered index value. Can this information be shown as UPDATE record?

0
Posted

ApexSQL Log is showing UPDATE records as DELETE/INSERT pairs for clustered index value. Can this information be shown as UPDATE record?

0

Unfortunately, no, seeing the DELETE/INSERT pair is completely normal – this is what SQL Server actually does when you change a value that’s part of a clustered index. The reason for this is that each change to clustered index really implies changing the position of the row in the physical layout of the table itself which in turn implies that it has to be deleted from its old position (page/slot) and then inserted into the new position (page/slot). Hence the DELETE/INSERT pair is logged instead of a simple UPDATE.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.