Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Begin and commit transaction Expand / Collapse
Author
Message
Posted Thursday, September 4, 2008 11:29 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, March 30, 2012 1:09 AM
Points: 6, Visits: 23
Hi to all

I just want to information is that

Applying the transaction objects in Stores procedure is the best way or applying in the ado.net is the best way.


Sachin Thamke
Mumbai, India
Post #564331
Posted Friday, September 5, 2008 12:05 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Wednesday, September 12, 2012 5:46 AM
Points: 1,109, Visits: 279
I think so.

If your requeriments and your business's logic allow it, it's better manage the transactions in the stored procedures inside SQL Server than manage from the client aplication.
Post #564343
Posted Friday, September 5, 2008 12:08 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Monday, June 23, 2014 6:03 AM
Points: 920, Visits: 702
its all depend on your business logic. If you are managing the transaction in SP then should check it will not create any lock / deadlock for any application same applies to handling transaction in Application.

Abhijit - http://abhijitmore.wordpress.com
Post #564344
Posted Friday, September 5, 2008 1:30 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Thursday, October 10, 2013 4:59 PM
Points: 79, Visits: 183
Two different scopes. If you utilize the ADO transaction everything called with that scope will be in the transaction. But if you handle the transaction within the SP you can limit it to only the portion of the SP you want to be in the transaction. Sometimes the ADO transaction would be good and other times the limited scope of the transaction in the SP is better.

All my SPs will have transaction handling as needed within the SP but will respect transactions outside of the SP as well.


Gary Johnson
Sr Database Engineer
Post #564873
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse