删除指定类型的工作流调用的SQL语句:
select wi.WorkflowInstanceId, wi.WorkflowInstanceInternalId
from
Type tinner
join Workflow won
t.TypeId = w.WorkflowTypeIdinner
join WorkflowInstance wion
w.WorkflowTypeId = wi.WorkflowTypeIdwhere
t.TypeFullName = --<type full name> i.e. 'Microsoft.WinOE.Test.TestCases.Hosting.Providers.Tracking.OrderStateMachine.OrderWorkflow'and
t.AssemblyFullName = --<assembly full name> i.e. 'Microsoft.WinOE.Test.TestCases.Hosting.Tracking, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'