Export (0) Print
Expand All

CLOSE MASTER KEY (Transact-SQL)

Closes the master key of the current database.

Applies to: SQL Server (SQL Server 2008 through current version).

Topic link icon Transact-SQL Syntax Conventions

CLOSE MASTER KEY

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 AdventureWorks2012;
CLOSE MASTER KEY;
GO

Community Additions

ADD
Show:
© 2014 Microsoft