2017-05-04 82 views

回答

1

在使用下面的查詢我在我的問題解決了:

-- SET SYSTEM_VERSIONING TO OFF 
ALTER TABLE [dbo].[MyTable] 
SET (SYSTEM_VERSIONING = OFF) 
GO 

** Do what ever you want to ** 

-- SET SYSTEM_VERSIONING TO ON 
ALTER TABLE [dbo].[MyTable] 
SET 
    (SYSTEM_VERSIONING = ON (HISTORY_TABLE = [dbo].[MyTable_Archive] , DATA_CONSISTENCY_CHECK = ON)) 
GO 
2
ALTER TABLE dbo.MyTable SET (SYSTEM_VERSIONING = OFF); 

** Do what ever you want to ** 

ALTER TABLE dbo.MyTable SET (SYSTEM_VERSIONING = ON); 

請參閱本Microsoft article更多信息

相關問題