|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Multi-User ASP.NET App and the connection objectFunction getData1() 'Open New Connection object ...... 'Close New Connection object End function Or Function getData2() 'Get Shared Connection object If cn.State = "Open" then 'Use Connection 'Close shared connection end function I think you understand where I'm getting at. Thanks <klj_m***@hotmail.com> wrote in message
news:1137773405.096516.297940@o13g2000cwo.googlegroups.com... Since connection objects are pooled, I'd say split the logic up into tiers.. > Alright just to get this clear in my head. Which construct is better? > :P Maybe not the answer you were looking for... Anywho, create a new connection and open it everytime you need access to a database record. Unless you are doing mass updates at once, this is the recommended way of doing it ;) Mythran |
|||||||||||||||||||||||