To use transaction construct(as follows) in Subsonic, MSDTC needs to be running on Windows machine. Right?
using (TransactionScope ts = new TransactionScope())
{
using (SharedDbConnectionScope sharedConnectionScope = new SharedDbConnectionScope())
{
// update table 1
// update table 2
// ts.commit here
}
}
- Is MS-DTC a default service on Windows systems(XP, Vista, Windows 7, Servers etc)?
- If it is not enabled, how can I make sure it gets enabled during the installation process of my application?