“Prevent saving changes that require the table to be re-created” negative effects

前端 未结 5 862
抹茶落季
抹茶落季 2020-12-04 06:00

Preamble

I was modifying a column in SQL Server 2008 today, changing the datatype from something like currency(18,0) to (19,2).

I got the

5条回答
  •  孤城傲影
    2020-12-04 06:48

    Reference - Turning off this option can help you avoid re-creating a table, it can also lead to changes being lost. For example, suppose that you enable the Change Tracking feature in SQL Server 2008 to track changes to the table. When you perform an operation that causes the table to be re-created, you receive the error message that is mentioned in the "Symptoms" section. However, if you turn off this option, the existing change tracking information is deleted when the table is re-created. Therefore,Microsoft recommend that you do not work around this problem by turning off the option.

提交回复
热议问题