Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2004
    Posts
    12

    Unanswered: ADO Connection BeginTrans() CommitTrans() RollbackTrans()

    Does anyone know of a way, using the ADO Connection object and SQLOLEDB Provider, to determine if that connection is currently in a transaction. I'm coding in C++.
    Nick

  2. #2
    Join Date
    Jan 2004
    Posts
    40
    I was not able to find a way

    i had to encapsulate anything related to DB connections into a class, and had an instance variable store where a transaction was active.

  3. #3
    Join Date
    Mar 2004
    Posts
    12
    Yeah, that's what we did too. I guess the design mistake we made was sharing 1 connection accross multiple instances of this class. I guess we could change the m_bTrans member to be static.

    Thanks,
    Nick

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •