Welcome to MSDN Blogs Sign in | Join | Help

MADHU@MICROSOFT BLOG

All About Distributed apps

Syndication

News

Madhu Ponduru works at Microsoft. Everything here, though, is his personal opinion and is not read or approved by Microsoft before it is posted. No warranties or other guarantees will be offered as to the quality of the opinions or anything else offered here.
Not able to query Tracking data real time when application and tracking database on different machines

The remote SQL server's clock should be in sync with the machine's clock where the program is run.

The sqlTrackingWorkflowInstance.WorkflowEvents fetches WorkFlowEvents in a DateTime range between SqlDateTime.MinValue and DateTime.UtcNow. If the SQL machines clock is ahead of the application machines clock then events will not be fetched until the application machine's clock catches up with the events DateTime creation time.

CONCLUSION:

  1. Make sure your application server and Database server clock is in sync (you have to sync it to seconds also).
  2. make sure tracking service IsTransactional  property set it to false

Example:

SqlTrackingService trackingservice = new SqlTrackingService(connectionString);

trackingservice.IsTransactional = false;

workflowRuntime.AddService(trackingservice);


 

Published Tuesday, July 22, 2008 3:32 PM by madhu_ponduru@hotmail.com

Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# a-foton » Not able to query Tracking data real time when application and tracking database on different machines @ Tuesday, July 22, 2008 6:56 PM

PingBack from http://blog.a-foton.ru/2008/07/not-able-to-query-tracking-data-real-time-when-application-and-tracking-database-on-different-machines/

a-foton » Not able to query Tracking data real time when application and tracking database on different machines

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement  
Page view tracker