From 54fa5cb7b89e232f12034ca4195d6d927115fdf8 Mon Sep 17 00:00:00 2001 From: Dan Rediske Date: Thu, 4 Aug 2016 09:08:13 -0700 Subject: [PATCH 1/4] Changed connection string --- .../security/contoso-clinic/src/ContosoClinic/Web.config | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/samples/features/security/contoso-clinic/src/ContosoClinic/Web.config b/samples/features/security/contoso-clinic/src/ContosoClinic/Web.config index 069e77be..62db89ca 100644 --- a/samples/features/security/contoso-clinic/src/ContosoClinic/Web.config +++ b/samples/features/security/contoso-clinic/src/ContosoClinic/Web.config @@ -11,10 +11,9 @@ requirePermission="false"/> - - + From 6e93e33ba58d7fce552de7bdd8f516be804d3407 Mon Sep 17 00:00:00 2001 From: Dan Rediske Date: Thu, 4 Aug 2016 09:08:13 -0700 Subject: [PATCH 2/4] Changed connection string --- .../security/contoso-clinic/src/ContosoClinic/Web.config | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/samples/features/security/contoso-clinic/src/ContosoClinic/Web.config b/samples/features/security/contoso-clinic/src/ContosoClinic/Web.config index 069e77be..62db89ca 100644 --- a/samples/features/security/contoso-clinic/src/ContosoClinic/Web.config +++ b/samples/features/security/contoso-clinic/src/ContosoClinic/Web.config @@ -11,10 +11,9 @@ requirePermission="false"/> - - + From 8dc43604cbe02a4996673fb36f90284697a855e2 Mon Sep 17 00:00:00 2001 From: Dan Rediske Date: Thu, 4 Aug 2016 11:05:43 -0700 Subject: [PATCH 3/4] Remove azure SQL DB references This is a SQL 2016 focused demo. Remove non-topical references, despite possible compatibility. --- samples/features/security/contoso-clinic/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/features/security/contoso-clinic/README.md b/samples/features/security/contoso-clinic/README.md index 6ca46325..2a6589e4 100644 --- a/samples/features/security/contoso-clinic/README.md +++ b/samples/features/security/contoso-clinic/README.md @@ -31,7 +31,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct](http://micr ### 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 (or Azure SQL Database instance) + + Open SSMS and connect to your SQL Server 2016 instance + 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. ![Import Data-tier Application Wizard](img/import-bacpac.png) @@ -52,11 +52,11 @@ This project has adopted the [Microsoft Open Source Code of Conduct](http://micr ``` - + Update the value of the *Data Source* key word in the database connection string to denote your server (either your local SQL Server instance of your logical server in Azure SQL Database) + + Update the value of the *Data Source* key word in the database connection string to denote your server + Make sure the *password* for your application users is correct (matches the password that you configured earlier) + Make sure the *Initial Catalog* value is set to *Clinic* + Save the file From 947c86e3b748807977db018bb136f9b7dcc49c91 Mon Sep 17 00:00:00 2001 From: Dan Rediske Date: Thu, 4 Aug 2016 11:52:16 -0700 Subject: [PATCH 4/4] fixed permission definition --- .../security/contoso-clinic/setup/Create-Application-Login.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/features/security/contoso-clinic/setup/Create-Application-Login.sql b/samples/features/security/contoso-clinic/setup/Create-Application-Login.sql index ceba8b96..d1b69747 100644 --- a/samples/features/security/contoso-clinic/setup/Create-Application-Login.sql +++ b/samples/features/security/contoso-clinic/setup/Create-Application-Login.sql @@ -4,6 +4,6 @@ CREATE USER [ContosoClinicApplication] FOR LOGIN [ContosoClinicApplication] EXEC sp_addrolemember N'db_datareader', N'ContosoClinicApplication' EXEC sp_addrolemember N'db_datawriter', N'ContosoClinicApplication' GRANT VIEW ANY COLUMN MASTER KEY DEFINITION TO [ContosoClinicApplication] -GRANT VIEW ANY COLUMN ENCRYPTION KEY TO [ContosoClinicApplication] +GRANT VIEW ANY COLUMN ENCRYPTION KEY DEFINITION TO [ContosoClinicApplication]