473,385 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

COM+ Trancation vs Stored Procedure Transactions

There are several ways of handling Transactions in DotNet. Some of them are

1. Using COM+ Serviced Component.
2. Using ADO .Net
3. using stored procedure

What is the best way of handling Transaction in DotNet Enterprise
Application interms of performance, maintainance and scalability?

How feasible it would be if we go for stored procedure option, considering
our Transaction can span multiple tables?
can we still use other COM+ Services like object pooling etc if we go for
stored procedure option?

Regards,
Irfan
Nov 16 '05 #1
3 4033
Irfan,

If you go for the stored procedure option, you can still have the
transaction span multiple tables. Its a matter of where you call the BEGIN
TRANS and END TRANS statements.

If you do not use COM+ for transactioning, then you can still use it for
everything else it provides. You just set the transaction mode to "Not
Supported"

I think that for what you are doing, you might want to go the stored
procedure route, or even the ADO.NET route. I don't think that COM+ is
terribly unperformant when providing transaction services, but it does
provide a flexibility that you don't seem to need (what if you have multiple
resources contributing in the transaction, for example?)

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Irfan" <go*******@yahoo.com> wrote in message
news:e$**************@TK2MSFTNGP10.phx.gbl...
There are several ways of handling Transactions in DotNet. Some of them are
1. Using COM+ Serviced Component.
2. Using ADO .Net
3. using stored procedure

What is the best way of handling Transaction in DotNet Enterprise
Application interms of performance, maintainance and scalability?

How feasible it would be if we go for stored procedure option, considering
our Transaction can span multiple tables?
can we still use other COM+ Services like object pooling etc if we go for
stored procedure option?

Regards,
Irfan

Nov 16 '05 #2
The COM+ method is better if used for distributed transaction. If your
application demands for multiple database server/database/tables then you
should use the COM+ serviced environemt. Otherwise it is better and simplet
to use Database Transaction Handling using SP or ADO.Net.

I would suggest the following sequence using ADO.Net

- Cretae Connection
- Begin Transaction
- Call SP
- Verify the return Code
- If return code is success then Commit
- else Rollback
muthu!

"Irfan" <go*******@yahoo.com> wrote in message
news:e$**************@TK2MSFTNGP10.phx.gbl...
There are several ways of handling Transactions in DotNet. Some of them are
1. Using COM+ Serviced Component.
2. Using ADO .Net
3. using stored procedure

What is the best way of handling Transaction in DotNet Enterprise
Application interms of performance, maintainance and scalability?

How feasible it would be if we go for stored procedure option, considering
our Transaction can span multiple tables?
can we still use other COM+ Services like object pooling etc if we go for
stored procedure option?

Regards,
Irfan

Nov 16 '05 #3
Hi Irfan,

"Irfan" <go*******@yahoo.com> wrote in message
news:e$**************@TK2MSFTNGP10.phx.gbl...
There are several ways of handling Transactions in DotNet. Some of them are
1. Using COM+ Serviced Component.
2. Using ADO .Net
3. using stored procedure

What is the best way of handling Transaction in DotNet Enterprise
Application interms of performance, maintainance and scalability?

How feasible it would be if we go for stored procedure option, considering
our Transaction can span multiple tables?
can we still use other COM+ Services like object pooling etc if we go for
stored procedure option?


I just want to point out that once you've decided to use COM+ component
services anyway, the added performance cost of using COM+ transactions is
negligible:

http://msdn.microsoft.com/library/de...entsvcperf.asp

In my opinion, COM+ transactions are a lot easier than coding transactions
yourself. This is particularly true if you ever need a transaction to span
multiple COM+ components or multiple machines.

Regards,
Daniel
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Subodh | last post by:
HI, I need to run same kind of transactions (basically deleting records) in a loop but I have only 1 hour in a day to run my procedure. So I need to set a timer in a SP so that SP terminates...
0
by: Brent Mondoux | last post by:
Hey everyone, I have a set of stored procedures that call each other to perform a set of tasks. I have decided to do this for database performance reasons rather than doing it from a ColdFusion...
2
by: metehan | last post by:
Hi all question regarding how transactions work in SQL Server... stored procedure below that generates unique IDs for messages we send to the backend It looks like sometimes, the number...
1
by: Ryan | last post by:
We have a suppliers application that runs a stored procedure (one of many). This stored procedure then calls various other ones etc... and the final number of stored procedures run is 11. Now,...
0
by: John | last post by:
All, We have written some performance tests whereby a simple transactional stored procedure is executed across n-tiers using each of: ..net transactions (with web services); sql transactions...
1
by: AS400 Guru | last post by:
I have this stored procedure that loops through a table and updates a couple of fields. For some reason one of the fields is not being updated. If I run the same code from query analyzer, it...
4
by: marc | last post by:
I've been developing a stored procedure that uses a user defined function in the query portion of the procedure. However, since the end product needs to allow for dynamic table names, the UDF will...
2
by: Kent Anderson | last post by:
We are currently switching to stored procedures for a lot of our database activity. The question has come up about the transactional nature of the stored procedures. I was wondering if stored...
7
by: Siv | last post by:
Hi, I have a stored procedure that I want to execute and then wait in a loop showing a timer whilst it completes and then carry on once I get notification that it has completed. The main reason...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.