Skip to content

Commit 9e4f666

Browse files
Merge pull request #14 from jovanpop-msft/master
Adding master key i SampleDB
2 parents 8345699 + 90b8074 commit 9e4f666

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SQL/Samples/LdwSample/SampleDB.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ IF (EXISTS(SELECT * FROM sys.external_data_sources WHERE name = 'YellowTaxi')) B
4242
DROP EXTERNAL DATA SOURCE YellowTaxi
4343
END
4444

45+
IF NOT EXISTS (SELECT * FROM sys.symmetric_keys) BEGIN
46+
CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'Put very strong password here!'
47+
END
48+
4549
IF EXISTS
4650
(SELECT * FROM sys.credentials
4751
WHERE name = 'https://sqlondemandstorage.blob.core.windows.net')

0 commit comments

Comments
 (0)