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

MasterKey.IsOpen Property

Gets the Boolean property value that specifies whether the database master key is open.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
public bool IsOpen { get; }

Property Value

Type: System.Boolean
A Boolean value that specifies whether the master key is open.If True, the master key is open. Otherwise, False.

If the master key was encrypted by using the service master key, it is automatically opened when the session begins. In this case, it is not necessary to open the master key explicitly. If the master key is encrypted with a password, you must open it explicitly by using the Open method and providing the password.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.