When to open/close the MySQLConnector
Hi All,
I'm in the throw of my first web construction and have been thrown in at the deep end with my only tech support being the web.
Anyway - i have a asp.net web site comprising of a master page and two content pages, which is populated from a mySql database. At the moment I am opening and closing the database connection each time i want to call a stored procedure (in response to a button press for example).
I have doubts this is the most efficient way to do things so my question is this - when/where should I handle the opening and closing of the connection? for example - can it be held in a session variable or a global?
I'm sure someone will have a nice link to a "website architecture for dummies" tutorial somewhere :-)
Cheers
/stuart
Subject
Written By
Posted
When to open/close the MySQLConnector
May 03, 2012 04:51AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.