CLOSE MASTER KEY (Transact-SQL)
Applies To: SQL Server 2014, SQL Server 2016 Preview
Closes the master key of the current database.
Takes no arguments.
This statement reverses the operation performed by OPEN MASTER KEY. CLOSE MASTER KEY only succeeds when the database master key was opened in the current session by using the OPEN MASTER KEY statement.
No permissions are required.