Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Biz Modules provides professional business modules and solutions for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Transaction support while using Microsoft.ApplicationBlocks.Data
Previous Previous
 
Next Next
New Post 5/4/2008 7:57 AM
User is offline r_honey
118 posts
9th Ranked


Transaction support while using Microsoft.ApplicationBlocks.Data 

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???

 
New Post 5/4/2008 3:19 PM
User is offline cathal connolly
2638 posts
www.cathal.co.uk
5th Ranked










Re: Transaction support while using Microsoft.ApplicationBlocks.Data 

the version of the DAB we're using doesn't have a transactional overload, so you'll have to handle transactions within the proc's themselves. When you execute a query through the helper it automatically opens and closes the connection as necessary. By default sqlconnections are all pooled, so these open and closes do not have a large overhead as closing a connection simply deactivates it and leaves it in the pool, if a new connection with the same credentials is then received within a short time period then the connection is reactivated to be used - reactivating a connection is a much quicker operation than creating a new one.

Cathal

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Transaction support while using Microsoft.ApplicationBlocks.Data
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


MaximumASP
MaximumASP provides a wide array of web hosting plans to fit any hosting need. We also provide software and services needed to keep it running optimally.
MaximumASP.com
Mad Development: dotnetnuke design and development
We are an expert Dotnetnuke shop specializing in developing solutions that merge the requirements of design and branding, content management, ecommerce, search engine optimization and business logic.
www.MadDevelopment.com
telerik
telerik r.a.d.controls suite is the most innovative and comprehensive toolset for ASP.NET development, tailored for seamless integration with the DotNetNuke project. This integrated collection of controls allows professionals to build web-solutions with the UI richness and responsiveness of desktop applications.
dnn.telerik.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP