Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Server Database Master Key

I ran the following script to create the master key for one of the databases I created, but I was not able to see they key in the node (see snapshot); does anyone know why? I look forward to hearing your reply, thank you.

USE AdventureWorks
GO

CREATE MASTER KEY ENCRYPTION BY PASSWORD = '23987hxJ#KL95234nl0zBe'
GO

enter image description here

like image 385
Max Avatar asked Aug 23 '11 05:08

Max


1 Answers

You cannot see this information in the SSMS GUI, but you can see whether a database has a master key if you run the following:

SELECT d.is_master_key_encrypted_by_server
FROM sys.databases AS d
WHERE d.name = 'AdventureWorks';
like image 133
Adam Wenger Avatar answered Jan 10 '23 05:01

Adam Wenger