I am using same database connection all the time. My feeling is that I do something not correct/not effective when I open and close the connection all the time when calling sub methods (method1 and method2). Is it really needed because I have had problems with "~ to many connections open... (pool problem... maximum utilized...)"? My feeling is also that this slows down the inserts into TableB, pls advice how to accomplish most correct/appropriate opening/closening of database connection? Any other comments of my code for inserts and ideas of improvements are highly appreciated.
Thanks in advance!
Answers
Know the answer? Post it. Somebody with the same question will find it here.
Answers
Know the answer? Post it. Somebody with the same question will find it here.