Skip to content

Commit b6cc50d

Browse files
authored
SQL Server authentication must be enabled for the example to work
This example cannot be executed when the SQL Server only allows authenticating with Windows credentials. It is necessary to make sure that the server is configured to allow authenticating with an SQL Server user.
1 parent 44bd1d8 commit b6cc50d

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

  • samples/features/security/contoso-clinic

samples/features/security/contoso-clinic/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,17 @@ This project has adopted the [Microsoft Open Source Code of Conduct](http://micr
3030
## Setup
3131
### Set up the Demo Database
3232
1. Clone/Download the repository
33-
2. Import the *Clinic* database
34-
+ Open SSMS and connect to your SQL Server 2016 instance
33+
2. Open SSMS and connect to your SQL Server 2016 instance
34+
+ In Object Explorer right-click on the server instance and select Properties. In the Security tab set Server authentication to SQL Server and Windows Authentication. Close the Properties window.
35+
+ In Object Explorer right-click on the server instance and select Restart.
36+
3. Import the *Clinic* database
3537
+ In SSMS, right-click on *Databases* in Object Explorer and select *Import Data-tier Application...*.
3638
+ Locate your copy of the bacpac file, located in the */setup* folder.
3739
![Import Data-tier Application Wizard](img/import-bacpac.png)
3840
+ Complete the steps of the wizard.
39-
3. While connected to your database (master) via SSMS, execute [setup/Create-Application-Login.sql](setup/Create-Application-Login.sql) link.
41+
4. While connected to your database (master) via SSMS, execute [setup/Create-Application-Login.sql](setup/Create-Application-Login.sql) link.
4042
+ Before running the script, create a password for the `ContosoClinicApplicaation` user.
41-
+ This script creates a login and user, assigns `datareader` and `datawriter` permissions, and gives several Always Encrypted specific permissions to the `ContosoClinicApplication` user
43+
+ This script creates a login and user, assigns `datareader` and `datawriter` permissions, and gives several Always Encrypted specific permissions to the `ContosoClinicApplication` user
4244

4345
### Modify and Set up the Sample Application Project
4446
1. Start Visual Studio and open the Contoso Application solution file- located in /src.

0 commit comments

Comments
 (0)