mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
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.
This commit is contained in:
@@ -30,15 +30,17 @@ This project has adopted the [Microsoft Open Source Code of Conduct](http://micr
|
||||
## Setup
|
||||
### Set up the Demo Database
|
||||
1. Clone/Download the repository
|
||||
2. Import the *Clinic* database
|
||||
+ Open SSMS and connect to your SQL Server 2016 instance
|
||||
2. Open SSMS and connect to your SQL Server 2016 instance
|
||||
+ 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.
|
||||
+ In Object Explorer right-click on the server instance and select Restart.
|
||||
3. Import the *Clinic* database
|
||||
+ In SSMS, right-click on *Databases* in Object Explorer and select *Import Data-tier Application...*.
|
||||
+ Locate your copy of the bacpac file, located in the */setup* folder.
|
||||

|
||||
+ Complete the steps of the wizard.
|
||||
3. While connected to your database (master) via SSMS, execute [setup/Create-Application-Login.sql](setup/Create-Application-Login.sql) link.
|
||||
4. While connected to your database (master) via SSMS, execute [setup/Create-Application-Login.sql](setup/Create-Application-Login.sql) link.
|
||||
+ Before running the script, create a password for the `ContosoClinicApplicaation` user.
|
||||
+ This script creates a login and user, assigns `datareader` and `datawriter` permissions, and gives several Always Encrypted specific permissions to the `ContosoClinicApplication` user
|
||||
+ This script creates a login and user, assigns `datareader` and `datawriter` permissions, and gives several Always Encrypted specific permissions to the `ContosoClinicApplication` user
|
||||
|
||||
### Modify and Set up the Sample Application Project
|
||||
1. Start Visual Studio and open the Contoso Application solution file- located in /src.
|
||||
|
||||
Reference in New Issue
Block a user