SQL SERVER 大量交易 縮小交易紀錄

  1. 使用with(tablock)
    insert into tableA (col1 , col2 , col3) with(tablock)
    select col1 , col2 , col3 from tableB
  2. insert 前要把索引停用,等作業完成後再重新啟。
by mhchen15 on 21 12 月, 2015 in SQL SERVER, 未分類 - Tags:
Tags:

There are no comments.

Name*: Website: E-Mail*:
XHTML: You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>