Closes the master key of the current database.
Transact-SQL Syntax Conventions
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.
USE AdventureWorks;
CLOSE MASTER KEY;
GO
Reference
CREATE MASTER KEY (Transact-SQL)
OPEN MASTER KEY (Transact-SQL)
Other Resources
Encryption Hierarchy
Help and Information
Getting SQL Server 2008 Assistance