Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Understanding MSDTC in Windows.

Understanding MSDTC in Windows.

Scheduled Pinned Locked Moved C#
questioncsharpannouncement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mittalpa
    wrote on last edited by
    #1

    Hi To use transaction construct(as follows) in C#, 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 } } 1. Is MS-DTC a default service on Windows systems(XP, Vista, Windows 7, Servers etc)? 2. If it is not enabled, how can I make sure it gets enabled during the installation process of my application? Please advise. Thanks AJ

    Follow your goals, Means will follow you ---Gandhi---

    N 1 Reply Last reply
    0
    • M mittalpa

      Hi To use transaction construct(as follows) in C#, 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 } } 1. Is MS-DTC a default service on Windows systems(XP, Vista, Windows 7, Servers etc)? 2. If it is not enabled, how can I make sure it gets enabled during the installation process of my application? Please advise. Thanks AJ

      Follow your goals, Means will follow you ---Gandhi---

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      You don't need it with the newer versions of SQL server like 2005 or 2008. It is only required if you are using SQL 2000. If you are using Oracle, then you need this service.

      Best wishes, Navaneeth

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups