系统作业 (AsyncOperation) 表存储系统作业。 实际数据库表的名称是AsyncOperationBase。 系统作业表示异步扩展(例如异步注册的工作流和插件),以及其他后台操作(例如批量删除、批量导入和汇总操作)。 在事件发生并处理完任何同步扩展后,平台会会序列化任何异步扩展的上下文,并将其作为 AsyncOperation 记录保存到数据库中。
在4.0 Microsoft Dynamics CRM许多工作流。 AsyncOperationBase 和 WorkflowLogBase 表增长非常大,并且出现性能问题。 原因 发生此问题的原因是,触发工作流规则时,在 MSCRM 数据库的 AsyncOperationBase 和 WorkflowLogBase 表中创建了工作流实例和工作流记录。 但是,工作流实例完成后,工作流记录将保留在数据库中。 因...
在4.0 Microsoft Dynamics CRM许多工作流。 AsyncOperationBase 和 WorkflowLogBase 表增长非常大,并且出现性能问题。 原因 发生此问题的原因是,触发工作流规则时,在 MSCRM 数据库的 AsyncOperationBase 和 WorkflowLogBase 表中创建了工...
GOCREATENONCLUSTERED INDEX CRM_AsyncOperation_CleanupCompletedON[dbo].[AsyncOperationBase] ([StatusCode],[StateCode],[OperationType]) GO while(1=1)begindeclare@DeleteRowCountint=10000declare@rowsAffectedintdeclare@DeletedAsyncRowsTabletable(AsyncOperationId uniqueidentifiernotnullprimarykey)insertinto@DeletedA...
OperationType])GOwhile(1=1)begindeclare @DeleteRowCount int = 10000declare @rowsAffected intdeclare @DeletedAsyncRowsTable table (AsyncOperationId uniqueidentifier not null primary key)insert into @DeletedAsyncRowsTable(AsyncOperationId)Select top (@DeleteRowCount) AsyncOperationId from AsyncOperationBase...
UPDATESTATISTICS[dbo].[AsyncOperationBase]WITHFULLSCANUPDATESTATISTICS[dbo].[DuplicateRecordBase]WITHFULLSCANUPDATESTATISTICS[dbo].[BulkDeleteOperationBase]WITHFULLSCAN--下面这个表在Dynamcis 365 Customer Engagement中不存在--UPDATE STATISTICS [dbo].[WorkflowCompletedScopeBase] WITH FULLS...
Learn more about the Microsoft.SqlServer.Management.Smo.BackupRestoreBase.AsyncOperation in the Microsoft.SqlServer.Management.Smo namespace.
IF EXISTS (SELECT name from sys.indexesWHERE name = N'CRM_AsyncOperation_CleanupCompleted') DROP Index AsyncOperationBase.CRM_AsyncOperation_CleanupCompletedGOCREATE NONCLUSTERED INDEX CRM_AsyncOperation_CleanupCompletedON [dbo].[AsyncOperationBase]...
DROP Index AsyncOperationBase.CRM_AsyncOperation_CleanupCompleted GO CREATE NONCLUSTERED INDEX CRM_AsyncOperation_CleanupCompleted ON [dbo].[AsyncOperationBase] ([StatusCode],[StateCode],[OperationType]) GO while(1=1) begin declare @DeleteRowCount int = 10000 ...
BackupRestoreBase.currentAsyncOperation 欄位發行項 2013/04/26 本文內容 語法 請參閱 指定目前的非同步作業,例如備份、還原或無。命名空間: Microsoft.SqlServer.Management.Smo 組件: Microsoft.SqlServer.SmoExtended (在 Microsoft.SqlServer.SmoExtended.dll 中)...