From 7f9b8a979175b33b801b7192dcee2ac6bbc31850 Mon Sep 17 00:00:00 2001 From: Jovan Popovic Date: Thu, 7 May 2020 10:12:56 +0200 Subject: [PATCH] Added master key --- SQL/Samples/LdwSample/SampleDB.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SQL/Samples/LdwSample/SampleDB.sql b/SQL/Samples/LdwSample/SampleDB.sql index e82cae3..7f48760 100644 --- a/SQL/Samples/LdwSample/SampleDB.sql +++ b/SQL/Samples/LdwSample/SampleDB.sql @@ -42,6 +42,10 @@ IF (EXISTS(SELECT * FROM sys.external_data_sources WHERE name = 'YellowTaxi')) B DROP EXTERNAL DATA SOURCE YellowTaxi END +IF NOT EXISTS (SELECT * FROM sys.symmetric_keys) BEGIN + CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'Put very strong password here!' +END + IF EXISTS (SELECT * FROM sys.credentials WHERE name = 'https://sqlondemandstorage.blob.core.windows.net')