Skip to content

Commit f27a9cf

Browse files
committed
Added master key creation
1 parent 7da6523 commit f27a9cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

samples/features/sql-big-data-cluster/bootstrap-sample-db.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ GO
1515

1616
USE sales;
1717
GO
18+
-- Create database master key (required for database scoped credentials used in the samples)
19+
IF NOT EXISTS(SELECT * FROM sys.databases WHERE name = DB_NAME() and is_master_key_encrypted_by_server = 1)
20+
CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'sql19bigdatacluster!';
21+
1822
-- Create default data sources for SQL Big Data Cluster
1923
IF NOT EXISTS(SELECT * FROM sys.external_data_sources WHERE name = 'SqlDataPool')
2024
CREATE EXTERNAL DATA SOURCE SqlDataPool

0 commit comments

Comments
 (0)