developers.de
daenet's .NET Community

Workflow Persistence Tables

Damir Dobric Posts

 

Damir@Phone    



My upcoming sessions:

AppFabric Applications at
NRW Conf 2011
09.Sept.2011 Wuppertal

HTML5 widgets in WP7+
Monodroid
Mobility Day
21.Sept.2011 - Zagreb

AppFabric and WCF sessions at
Advanced Developer Conference
26.-27. Oktober 2011 in Frankenthal

AppFabric Applications, queues, topics and more at
Prio Conference
02. - 03. November 2011 in Meistersingerhalle Nürnberg

AppFabric Applications deep dive hosted by
.NET User Group Frankfurt
17.Nov.2011 18.30-22.30 Microsoft - Bad Homburg 

 

 

When digging in persistence table I often use few useful queries, which gives me all required information I mostly need.
Without of commenting too much, I will just post queries and results here for documentation purposes.

SELECT * FROM [RootPersistenceDb].[System.Activities.DurableInstancing].[RunnableInstancesTable]

SELECT * FROM [RootPersistenceDb].[System.Activities.DurableInstancing].[LockOwnersTable]

SELECT * FROM [RootPersistenceDb].[System.Activities.DurableInstancing].[KeysTable]

SELECT * from    [RootPersistenceDb].[System.Activities.DurableInstancing].[InstancesTable]

 

If the instance is shown in RunnableInstancesTable, it means it is persisted (and unlocked) and it can be loaded.

image

If the same instance is running it is not possible to load it again by some other host. In this case RunnableInstancesTable does not contain this instance.

image


Posted Jul 09 2010, 10:30 PM by Damir Dobric
Filed under: ,
daenet GmbH