Mass Updation of Records

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • satyajit911
    New Member
    • Aug 2008
    • 2

    Mass Updation of Records

    Hello,

    I have to mass update 40000 records using SQL. But, this operation locks the table for some while. Can anyone suggest how I can update these records part by part say 500 records at a time.

    Thanks,
    Satya.
  • docdiesel
    Recognized Expert Contributor
    • Aug 2007
    • 297

    #2
    Hi,

    programming a loop externally, each time you could sort the resultset and add a "fetch first 500 rows" after your conditions. But you have to make sure that those 500 won't be on top of the list the next time.

    More information about your tables and sql statements could help us to help you.

    Regards

    Doc Diesel

    Comment

    Working...