Making a database connection global
- From: "Terry Jolly" <terry@xxxxxxxxx>
- Date: Fri, 12 May 2006 16:02:10 -0500
Web Solution
Goal: Have a global database connection
Why: (There will be 30+ tables, represented by 30+ classes) I only want to
reference the database connection once.
I put the connection string in the web.config.
I created a class with a static database connection and the class opens and
closes the database.
This seems to work so the question: Is there a better way to handle the
database connection?
Thanks In Advance.
.
- Follow-Ups:
- Re: Making a database connection global
- From: Göran Andersson
- Re: Making a database connection global
- From: Kevin Spencer
- Re: Making a database connection global
- From: Galin Iliev [MCSD.NET]
- Re: Making a database connection global
- From: sloan
- Re: Making a database connection global
- From: Michael Bosch
- Re: Making a database connection global
- From: Mark Rae
- Re: Making a database connection global
- Prev by Date: Base Page
- Next by Date: Re: drop downs in userControls
- Previous by thread: PostBackURL, Server.Transfer, and PreviousPage
- Next by thread: Re: Making a database connection global
- Index(es):
Relevant Pages
|
Loading