COM+ transactions

Posted on 2003-03-10
Medium Priority
Last Modified: 2013-11-25
Created a DLL Using VB6 to run under COM+.

If I set the MTSTransactionMode property for the class to 1 - NoTransactions, what effect will this have if my class method calls a SQL Server stored procedure which does a series of updates which in turn are wrapped in a T-SQL BEGIN TRANSACTION/COMMIT TRANSACTION ??
Question by:jonatec
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 26

Expert Comment

ID: 8102530
Good question,

See this one it may not help you but it's worth to check out


Be my guess, You still can do it from ADO if you set to

Don't accept this as an answer because I want to know the answer too


Expert Comment

ID: 8102957
It creates another transaction begins and commits its work regardless of your transaction in COM+ component. e.g. It does not affect your transaction, does not commits or rollbacks your transaction.

Author Comment

ID: 8121331
To. iozturk...
Does that mean if I start a transaction thru COM+, (Required), that my SQL BEGIN TRANSACTION is ignored because SQL did not start the transaction? Presumably in this situation the ROLLBACK TRANSACTION will still be recongnised by SQL?

Accepted Solution

iozturk earned 750 total points
ID: 8126252
No, They create seperate transactions. COM+ object (require), say obj1, creatres a transaction, when you call your SP from COM+ object that does not support transaction, say obj2, SP(stored proc.) creates another db transaction commits or rollbacks and this operation does not commit or rollback obj1's transaction. And if obj1 commits or rollbacks also this has no effect on SP transaction.
Be carefull if you set transactions also from Component services applet. Its settings overrides settings of objects.

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question