Skip to main content

All Questions

1 vote
3 answers
128 views

Is it OK to re-create many SQL connections (SQL 2008)

When performing many inserts into a database I would usually have code like this: using (var connection = new SqlConnection(connStr)) { connection.Open(); foreach (var item in items) { var ...
Mr. Flibble's user avatar
  • 27.1k