症状

使用 Microsoft SQL Server 2012 或 2014 Master Data Services (MDS)时,历史记录可能会变得非常大,并且没有可用于清理的内置函数。 添加三个存储过程以清理暂存、验证和事务历史记录。 用法如下所示:

--@ModelID is the model ID that you clean up the log for.--@CLeanupOlderThanDate is the date before that the logs or records is deleted. DECLARE @CleanupOlderThanDate date = '<Date>', @ModelID INT = <ID>--Cleanup Transaction HistoryEXEC mdm.udpTransactionsCleanup @ModelID, @CleanupOlderThanDate; --Cleanup Validation HistoryEXEC mdm.udpValidationsCleanup @ModelID, @CleanupOlderThanDate; --Cleanup entity-based staging tableEXEC mdm.udpEntityStagingBatchTableCleanup @ModelID, @CleanupOlderThanDate;

注意 增长较大的中心表为 tblTransaction、tblTransactionAnnotation、tblValidationLog、、、tblValidationHistory 和。

SQL Server 的每个新的累积更新均包含以前的累积更新中包含的所有修补程序和所有安全修补程序。 查看 SQL Server 的最新累积更新:

状态

Microsoft 已确认这是在“适用范围”部分中列出的 Microsoft 产品存在的问题。

需要更多帮助?

需要更多选项?

了解订阅权益、浏览培训课程、了解如何保护设备等。

社区可帮助你提出和回答问题、提供反馈,并听取经验丰富专家的意见。