Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

CLOSE MASTER KEY (Transact-SQL)

Closes the master key of the current database.

Topic link iconTransact-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 AdventureWorks;
CLOSE MASTER KEY;
GO
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.