This was a question asked in an interview and I was wondering whether there is any hard and fast rule to keep a connection open for a certain amount of time?
Asked
Active
Viewed 47 times
1 Answers
2
The correct answer is "as shortest time possible because ado.net supports connection pooling and closed connections can be reused as long as the connection string is the same"
Scott Chamberlain
- 121,188
- 31
- 271
- 414