I'm using WCF, SQL Server and ADO.NET. I'm looking at two implementation options for the data access layer.
- The Enterprise Library that uses connection pooling
- A custom solution that does not use connection pooling. Every time the database is accessed a connection is created, used and then destroyed.
Option 2 looks like this:
using (var connection = new SqlConnection(...)){...}
What is the difference in performance between these two? When does it make sense to pool connections?