I am getting exception "MSDTC on server 'XXX' is unavailable. But I want the solution in which I should not start the DTC service in Control Panel. Is there any way to do this?
public override int ExecuteNonQuery (System.Data.Common.DbCommand command) { int rowsAffected = 0; try { if (m_connection.State != ConnectionState.Open) { m_connection.Open(); } rowsAffected = base.ExecuteNonQuery(command); } finally { m_connection.Close(); } return rowsAffected; }