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/relational-databases/security/encryption/encrypt-a-column-of-data.md
+10-14Lines changed: 10 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
---
2
-
title: "Encrypt a Column of Data | Microsoft Docs"
2
+
title: "Encrypt a Column of Data"
3
3
description: Learn how to encrypt a column of data by using symmetric encryption in SQL Server using Transact-SQL, sometimes known as column-level or cell-level encryption.
[!INCLUDE [SQL Server Azure SQL Database](../../../includes/applies-to-version/sql-asdb-asdbmi-asa.md)]
26
25
27
-
This article describes how to encrypt a column of data by using symmetric encryption in [!INCLUDE[ssnoversion](../../../includes/ssnoversion-md.md)] using [!INCLUDE[tsql](../../../includes/tsql-md.md)]. This is sometimes known as column-level encryption, or cell-level encryption. This feature is in preview for Azure Synapse Analytics
26
+
This article describes how to encrypt a column of data by using symmetric encryption in [!INCLUDE[ssnoversion](../../../includes/ssnoversion-md.md)] using [!INCLUDE[tsql](../../../includes/tsql-md.md)]. This is sometimes known as column-level encryption, or cell-level encryption.
28
27
29
-
The examples in this article have been validated against AdventureWorks2017. To get sample databases, see [AdventureWorks sample databases](../../../samples/adventureworks-install-configure.md).
28
+
The examples in this article have been validated against `AdventureWorks2017`. To get sample databases, see [AdventureWorks sample databases](../../../samples/adventureworks-install-configure.md).
30
29
31
30
## Security
32
31
@@ -43,7 +42,7 @@ The following permissions are necessary to perform the steps below:
43
42
44
43
To use the following examples, you must have a database master key. If your database does not already have a database master key, create one. To create one, connect to your database and run the following script. Be sure to use a complex password.
45
44
46
-
Copy and paste the following example into the query window that is connected to the AdventureWorks sample database. Click**Execute**.
45
+
Copy and paste the following example into the query window that is connected to the `AdventureWorks` sample database. Select**Execute**.
47
46
48
47
```sql
49
48
CREATE MASTER KEY ENCRYPTION BY
@@ -56,9 +55,9 @@ Always back up your database master key. For more information on database master
56
55
57
56
1. In **Object Explorer**, connect to an instance of [!INCLUDE[ssDE](../../../includes/ssde-md.md)].
58
57
59
-
2. On the Standard bar, click**New Query**.
58
+
2. On the Standard bar, select**New Query**.
60
59
61
-
3. Copy and paste the following example into the query window that is connected to the AdventureWorks sample database. Click**Execute**.
60
+
3. Copy and paste the following example into the query window that is connected to the `AdventureWorks` sample database. Select**Execute**.
62
61
63
62
```sql
64
63
CREATE CERTIFICATE Sales09
@@ -111,9 +110,9 @@ Always back up your database master key. For more information on database master
111
110
112
111
1. In**Object Explorer**, connect to an instance of [!INCLUDE[ssDE](../../../includes/ssde-md.md)].
113
112
114
-
2. On the Standard bar, click**New Query**.
113
+
2. On the Standard bar, select**New Query**.
115
114
116
-
3. Copy and paste the following example into the query window that is connected to the AdventureWorks sample database. Click**Execute**.
115
+
3. Copy and paste the following example into the query window that is connected to the `AdventureWorks` sample database. Select**Execute**.
117
116
118
117
```sql
119
118
CREATE CERTIFICATE HumanResources037
@@ -160,12 +159,9 @@ Always back up your database master key. For more information on database master
0 commit comments