SQL Server Performance

How to run the msdtc service programmatically

Discussion in 'General Developer Questions' started by nilayinc, Sep 15, 2003.

  1. nilayinc New Member

    I need to start the MSDTC service if it's not already running from within a C# windows application.
    How can I achieve this ?
  2. Twan New Member

    hi there

    Can you explain a bit more about what you are trying to achieve?

    Is the application running on the client or server?
    Do you want MSDTC to run on the client or server?

    Any reason why MSDTC can't be configured to run automatically?

    net start "Distributed Transaction Coordinator" should start it on the local machine, but you may need additional rights to do this...

    Cheers
    Twan
  3. royv New Member

    Look at System.Diagnostics.Process class for .NET


    "How do you expect to beat me when I am forever?"

Share This Page