Click to Rate and Give Feedback
TechNet
TechNet Library
SQL Server
SQL Server 2008
Database Engine
Secure Operation
 How to: Create a Database Master Ke...

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
Collapse All/Expand All Collapse All
Other versions are also available for the following:
SQL Server 2008 Books Online (October 2009)
How to: Create a Database Master Key

The database-level cryptographic features in SQL Server rely on a database master key. This key is not generated automatically when the database is created; it must be created by the system administrator. It is only necessary to create the master key once per database.

  1. In Query Editor, connect to the database by executing the following Transact-SQL command: USE <database name> ; GO.

  2. Choose a password for encrypting the copy of the master key that will be stored in the database.

  3. Execute the following Transact-SQL command: CREATE MASTER KEY ENCRYPTION BY PASSWORD = '<password>' ; GO

Aa337551.note(en-us,SQL.100).gifImportant:
You should immediately back up the new master key. For more information, see How to: Back Up a Database Master Key.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker