A transaction protocol is described that allows a database transaction to begin as a local, lightweight transaction without involving a distributed transaction coordinator and then be promoted to a distributed transaction only when required, e.g. when more than one database connection is required. A promotable enlistment allows a first resource to begin processing a promotable transaction. If the resource is notified that the transaction is being promoted to a distributed transaction, the resource is configured to promote the enlistment to a distributed transaction coordinator which coordinates processing of the transaction between the first resource and at least a second resource.
RELATED APPLICATION
This application claims the benefit of U.S. Provisional Patent Application No. 60/583,216, filed on Jun. 25, 2004, entitled "Promotable Single Phase Enlistment" and assigned to Microsoft Corp..RTM., which is hereby incorporated by reference.