Edge
4.5
4.5
Not planned
In the .NET Framework 4.5, non-pooled SQL connections which are not explicitly exposed (via Dispose, Close, or using) will leak memory
- Quirked
- Build-time break
This issue is fixed in a .NET Framework 4.5 servicing update. Update the .NET Framework 4.5, or upgrade to .NET Framework 4.5.1 or later, to fix this issue. Alternatively, this issue may be avoided by using the xref:System.Data.SqlClient.SqlConnection?displayProperty=name in a 'using' pattern (which is a best practice) or by explicitly calling Dispose or Close when the connection is no longer needed.
M:System.Data.SqlClient.SqlConnection.#ctor(System.String)
M:System.Data.SqlClient.SqlConnection.#ctor(System.String,System.Data.SqlClient.SqlCredential)
Data