Truncate table and indexes

  • Hi there,

    When the table is truncated, what happens to the indexes?

    Currently before the table is truncated, the index is dropped then after add all the record the index is created. Is it the right way to do?

    Thank you for your reply.

    NL

     

  • Index should not be changed. Dropping indexes before truncating a table is for breaking relations between tables.

  • Just truncate the table.  SQL Server will automatically handle the indexes.


    Regards,

    Carlos

  • Thank you.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply