Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update statement for 8,000,000 rows - bypass the Log?
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00799187
Message ID:
00799291
Views:
27
Thanks Mike. I'll try that.

Al

>What about doing the update in batches? Put the database in Simple Recovery mode and then do the updates in batches of 1000 (or something like it) in a loop. Periodically, issue a CHECKPOINT within the loop to cause SQL Server to truncate the log. Afterwards, put the database back into Full Recovery mode and do a full backup.
>
>-Mike
>
>>Hi,
>>
>>I have to do an update statement changing the value in one field for 8,000,000 rows in a table. This always fills-up my transaction log - how can I do this without hitting the transaction log?
>>
>>Thanks.
Al Williams

Anola MB, CANADA
Previous
Reply
Map
View

Click here to load this message in the networking platform