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
  • 407
  • 1
  • 3
  • 13

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
  • 121,188
  • 31
  • 271
  • 414