CLOSE MASTER KEY (Transact-SQL)

Closes the master key of the current database.

Ikona łącza do tematu Transact-SQL Syntax Conventions

Składnia

CLOSE MASTER KEY

Arguments

Takes no arguments.

Uwagi

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.

Permissions

No permissions are required.

Examples

USE AdventureWorks2012;
CLOSE MASTER KEY;
GO

Zobacz także

Odwołanie

CREATE MASTER KEY (Transact-SQL)

OPEN MASTER KEY (Transact-SQL)

Koncepcje

Encryption Hierarchy