T-SQL to show Service Master Key?
SELECT * FROM sys.symmetric_keys
T-SQL to regenerate the service master key?
ALTER SERVICE MASTER KEY REGENERATE
GO
T-SQL to create database master key for encryption?
CREATE MASTER KEY ENCRYPTION BY PASSWORD = ‘pass@word’
T-SQL to fix user logins on encrypted database restored to a different instance?
sp_change_users_login ‘Auto_Fix’, ‘Username’
Define the T-SQL steps to enable Transparent Database Encryption?
How do you monitor the state of database encryption?
SELECT * FROM sys.dm_database_encryption_keys
Column encryption_state: