to close connection to database after i use or not?
问题 is it be better to open connection to database - make any querys...update....delete - and after i use to close this connection or open the connection when the program load - and close when the program close ? thanks in advance 回答1: In general, you Close (Dispose) as soon as possible in your code. With a try/finally or using block. What actually happens depends on the ConnectionPool settings for your app. Basically the presence of the ConnectionPool means you don't have to worry about the