0

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?

Fast Chip
  • 425
  • 1
  • 4
  • 16

1 Answers1

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
  • 124,994
  • 33
  • 282
  • 431