SqlConnection::StatisticsEnabled Property
.NET Framework (current version)
When set to true, enables statistics gathering for the current connection.
Assembly: System.Data (in System.Data.dll)
Property Value
Type: System::BooleanReturns true if statistics gathering is enabled; otherwise false. false is the default.
Enabling statistics gathering has a minor, but measurable effect on performance and therefore should be enabled only when it is required.
.NET Framework
Available since 2.0
Available since 2.0
Show: