Jun-05-2021, 06:37 PM
I can't seem to find straight answer in the books I've got or from my DDG searches...
When should I connect and disconnect to my database?
Is it OK/acceptable to connect at the beginning of a method and disconnect at the end or should I connect and disconnect each time I want to do something with the database?
I'm just wondering what the norm is!
Thank you
When should I connect and disconnect to my database?
Is it OK/acceptable to connect at the beginning of a method and disconnect at the end or should I connect and disconnect each time I want to do something with the database?
I'm just wondering what the norm is!
Thank you