• terry999 (5/20/2013)


    Hi

    I need to update several tables which have the same field its a shopid.

    e.g.

    Update orders set Shopid =300 where shopid =3

    Shopid is part of indices.

    Will it make a big difference to disable the indices first.

    I'm concerned about log file getting too big for the disk.

    Thanks

    if you disable the indexes, everything will slow down, because it has to do a table scan instead of an index seek to update the table, right?

    your example is probably an over simplification of a real problem, maybe you can add some detail as to what the underlying problem is?

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!