in reply to Re^3: Perl with Database connection.
in thread Perl with Database connection.
I support ping method man.
UpdateInstead of connecting to the database every time when you execute the query, you connect with the database and by calling the ping method from DBI you can check the database connectivity, if the connection is alive, execute the query otherwise call the connect function and create database connection.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Perl with Database connection.
by santhosh_89 (Scribe) on Aug 03, 2009 at 08:43 UTC |