Skip to content

Commit 0bc9dab

Browse files
committed
Fixed check for master key
1 parent 86e2c8d commit 0bc9dab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ GO
7070
CREATE OR ALTER PROCEDURE #create_data_sources
7171
AS
7272
BEGIN
73-
-- Create database master key (required for database scoped credentials used in the samples)
74-
IF NOT EXISTS(SELECT * FROM sys.databases WHERE name = DB_NAME() and is_master_key_encrypted_by_server = 1)
73+
-- Create database master key (required for database scoped credentials used in the samples)
74+
IF NOT EXISTS(SELECT * FROM sys.symmetric_keys WHERE name = '##MS_DatabaseMasterKey##')
7575
CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'sql19bigdatacluster!';
7676

7777
-- Create default data sources for SQL Big Data Cluster

0 commit comments

Comments
 (0)