创建主密钥时出错

时间:2012-04-06 08:24:38

标签: sql-server vb.net

我想做一个主密钥,但发生以下错误

我的错误是

Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near 'master'.

我的代码是

USE EncryptTest 
GO
create  master key encryption by password='al4jklklkl@kjkjkFdi';
GO

1 个答案:

答案 0 :(得分:2)

    USE AdventureWorks2012;
    CREATE MASTER KEY ENCRYPTION BY PASSWORD = '23987hxJ#KL95234nl0zBe';
    GO