Link to home
Create AccountLog in
Avatar of Alex A
Alex A

asked on

SQL Server: batch update

Hi,

I have tables with hundreds millions of records. While updating all rows I got an error 'transaction log full'. What should be done about it? How to write update statements in batches?
Thanks.
ASKER CERTIFIED SOLUTION
Avatar of edtechdba
edtechdba
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Aneesh
How to write update statements in batches?
Post your schema for the table and your UPDATE statement and we can help.  Also indicate whether you are using Full or Simple Recovery Model.