mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Merge pull request #721 from mardukbp/patch-2
SQL Server authentication must be enabled for the example to work
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