J
John
Hi
In my app I am opening a db connection then running a set of queries and at
the end closing the db connection. Once in a while a query fails to run
saying database connection is closed. How can I ensure that db connection is
confirmed open before running a query? Will
dbconn.close
dbconn.open
before running a query do the trick or do I need to make more comprehensive
checks?
Thanks
Regards
In my app I am opening a db connection then running a set of queries and at
the end closing the db connection. Once in a while a query fails to run
saying database connection is closed. How can I ensure that db connection is
confirmed open before running a query? Will
dbconn.close
dbconn.open
before running a query do the trick or do I need to make more comprehensive
checks?
Thanks
Regards