Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating large no of rows

Status
Not open for further replies.

moniB

Programmer
Dec 4, 2002
5
GB
Hello everyone,

I have a table with approx 7 million rows and need to update one field for each row. Can anyone tell me the best way to do this update. I'm aware that simply running an update statement will fill the transaction log.

Thanks in advance,
Monica.
 
The UPDATE statement is logged.You have no choise of no logged option.
But you can use nolock to avoid user blocking problem
 
See FAQ183-3141. It's by Terry Broadbent and is about doing mass updates, inserts, deletes.

-SQLBill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top