|
| 1 | +# Sample for use of Always Encrypted in WideWorldImportersDW |
| 2 | + |
| 3 | +This script demonstrates the use of Always Encrypted to encrypt sensitive data in the database. |
| 4 | + |
| 5 | + |
| 6 | +### Contents |
| 7 | + |
| 8 | +[About this sample](#about-this-sample)<br/> |
| 9 | +[Before you begin](#before-you-begin)<br/> |
| 10 | +[Running the sample](#run-this-sample)<br/> |
| 11 | +[Sample details](#sample-details)<br/> |
| 12 | +[Disclaimers](#disclaimers)<br/> |
| 13 | +[Related links](#related-links)<br/> |
| 14 | + |
| 15 | + |
| 16 | +<a name=about-this-sample></a> |
| 17 | + |
| 18 | +## About this sample |
| 19 | + |
| 20 | +<!-- Delete the ones that don't apply --> |
| 21 | +1. **Applies to:** SQL Server 2016 (or higher), Azure SQL Database |
| 22 | +1. **Key features:** Always Encrypted |
| 23 | +1. **Workload:** OLTP |
| 24 | +1. **Programming Language:** T-SQL, C# |
| 25 | +1. **Authors:** Greg Low, Jos de Bruijn |
| 26 | +1. **Update history:** 26 May 2016 - initial revision |
| 27 | + |
| 28 | +<a name=before-you-begin></a> |
| 29 | + |
| 30 | +## Before you begin |
| 31 | + |
| 32 | +To run this sample, you need the following prerequisites. |
| 33 | + |
| 34 | +**Software prerequisites:** |
| 35 | + |
| 36 | +<!-- Examples --> |
| 37 | +1. SQL Server 2016 (or higher) or Azure SQL Database. |
| 38 | +2. SQL Server Management Studio |
| 39 | +3. Visual Studio 2015 |
| 40 | +4. The WideWorldImporters database. |
| 41 | + |
| 42 | +<a name=run-this-sample></a> |
| 43 | + |
| 44 | +## Running the sample |
| 45 | + |
| 46 | +1. Build the solution to create the data population app. |
| 47 | + |
| 48 | +2. Open both scripts in different windows or tabs in Management Studio. |
| 49 | + |
| 50 | +3. Follow the instructions in the main script DemonstrateAlwaysEncrypted.sql. |
| 51 | + |
| 52 | +## Sample details |
| 53 | + |
| 54 | +The sample adds a new table with sensitive data about suppliers. This sensitive data is always encrypted. |
| 55 | + |
| 56 | +As part of the sample you create an encryption key that is saved locally (where you run SSMS). The client application inserts data into the table. With the sample scripts you will see how the data is encrypted in the table and cannot be viewed, even by a sysadmin, unless you have the encryption key. |
| 57 | + |
| 58 | +<a name=disclaimers></a> |
| 59 | + |
| 60 | +## Disclaimers |
| 61 | +The code included in this sample is not intended to be used for production purposes. |
| 62 | + |
| 63 | +<a name=related-links></a> |
| 64 | + |
| 65 | +## Related Links |
| 66 | +<!-- Links to more articles. Remember to delete "en-us" from the link path. --> |
| 67 | +TBD |
| 68 | + |
0 commit comments