|
|
|
Forum 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
|
|
|
|
|
Ten 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.
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 8:06 AM
Points: 900,
Visits: 654
|
|
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
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Thursday, July 05, 2012 5:05 PM
Points: 79,
Visits: 181
|
|
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
|
|
|
|