Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
Closes the master key of the current database.
Transact-SQL Syntax Conventions
Syntax
CLOSE MASTER KEY
Arguments
Takes no arguments.
Remarks
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 AdventureWorks;
CLOSE MASTER KEY;
GO
See Also
Reference
CREATE MASTER KEY (Transact-SQL)
OPEN MASTER KEY (Transact-SQL)