I am creating Data Provider for my module for Sql Server 2005. Some actions require multiple updations to be made to the database. All the magic happens inside a Stored Procedure for each such action. The procedure performs all the updations in one go. I want these updations to succeed or fail together.
They are called through SqlHelper class from the DataProvider. My question is whether SqlHelper methods initiate a transaction before calling the procedure, or transactions have to be handled through the procedure itself???
Also, I would like to know whether SqlHelper opens & closes connections for each call to its methods or it pools the connections???