You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/connect/ado-net/sql/data-classification.md
+53-11Lines changed: 53 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "Data discovery and classification in SqlClient"
3
3
description: "Describes how to check if a SQL Server database supports data classification and how to access data classification information through a SqlDataReader object."
4
-
ms.date: "06/15/2020"
4
+
ms.date: "11/23/2020"
5
5
dev_langs:
6
6
- "csharp"
7
7
ms.prod: sql
@@ -20,29 +20,71 @@ ms.reviewer:
20
20
21
21
[Data Discovery & Classification](../../../relational-databases/security/sql-data-discovery-and-classification.md) is a set of advanced services for discovering, classifying, labeling & reporting the sensitive data in your databases. SqlClient provides an API exposing read-only Data Discovery and Classification information when the underlying source supports the feature. This information is accessed through SqlDataReader.
22
22
23
-
Microsoft.Data.SqlClient v2.1.0 introduces support for Data Classification's `Sensitivity Rank` information. `Sensitivity Rank` is an identifier based on a predefined set of values, which define sensitivity rank. It can be used by other services like Advanced Threat Protection to detect anomalies based on their rank. The following new APIs are now available in Microsoft.Data.SqlClient namespace:
23
+
Microsoft.Data.SqlClient v2.1.0 introduces support for Data Classification's `Sensitivity Rank` information. `Sensitivity Rank` is an identifier based on a predefined set of values, which define sensitivity rank. It can be used by other services like Advanced Threat Protection to detect anomalies based on their rank. The following Data Classification APIs are now available in Microsoft.Data.SqlClient.DataClassification namespace:
24
24
25
25
```csharp
26
-
publicclassSensitivityClassification
26
+
// New in Microsoft.Data.SqlClient v2.1.0
27
+
publicenumSensitivityRank
28
+
{
29
+
NOT_DEFINED=-1,
30
+
NONE=0,
31
+
LOW=10,
32
+
MEDIUM=20,
33
+
HIGH=30,
34
+
CRITICAL=40
35
+
}
36
+
37
+
publicsealedclassSensitivityClassification
27
38
{
28
39
// Returns the sensitivity rank for the query associated with the active 'SqlDataReader'.
40
+
// New in Microsoft.Data.SqlClient v2.1.0
29
41
publicSensitivityRankSensitivityRank;
42
+
43
+
// Returns the labels collection for this 'SensitivityClassification' Object
44
+
publicReadOnlyCollection<Label> Labels;
45
+
46
+
// Returns the information types collection for this 'SensitivityClassification' Object
0 commit comments