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.
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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.
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.
http://sequelserver.blogspot.ca/2013/02/update-millions-of-rows.html