-
Connection String
I don't know if I should close or dispose a connection string when I'm finished with it. I would like some who know the answer to reply. I've read several articles regarding connection string that are conflicting. I'm not sure if I should close it. Or if the GC handles this for me. If I don't close or dispose the connection, does it return the the connection pool?
Thanks,
James
-
You always have to close the connection to the database. If you're writing a web app, then it's always best to open connection, get/edit your data, close connection.