SqlConnection.StatisticsEnabled Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When set to true
, enables statistics gathering for the current connection.
public:
property bool StatisticsEnabled { bool get(); void set(bool value); };
public bool StatisticsEnabled { get; set; }
member this.StatisticsEnabled : bool with get, set
Public Property StatisticsEnabled As Boolean
Property Value
Returns true
if statistics gathering is enabled; otherwise false
. false
is the default.
Remarks
Enabling statistics gathering has a minor, but measurable effect on performance and therefore should be enabled only when it is required.
Applies to
See also
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.