2010-06-18 28 views
-2
USE MyDatabase 
GO 
CREATE DATABASE ENCRYPTION KEY 
WITH ENCRYPTION 
ALGORITHM = AES_256 BY SERVER CERTIFICATE TDECert 

GO 

TDE時得到一個錯誤,當我在SQL Server 2008中執行該語句,我得到的錯誤:我執行SQL Server 2008中

Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'KEY'.
Msg 319, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'with'. If this statement is a common table expression or an xmlnamespaces clause, the previous statement must be terminated with a semicolon.

怎麼辦? 我只是想加密我的分貝。

+2

請努力在你的問題中使用真實的文字 – 2010-06-18 04:19:33

+2

並閱讀文檔將有所幫助。你想讓我們做什麼?複製粘貼? – TomTom 2010-06-18 04:21:00

+0

下一次,請格式化您的問題。 – 2010-06-18 14:56:06

回答

1

我你的榜樣和MSDN例子間看到的唯一區別是字的大寫WITH

1

你錯過了什麼是加密通過,因此修正後的腳本將低於:

USE MyDatabase 
GO 
CREATE DATABASE ENCRYPTION KEY 
WITH ENCRYPTION ALGORITHM = AES_256 
ENCRYPTION BY SERVER CERTIFICATE TDECert 
GO 
相關問題