透明加密视频演示代码
http://technet.microsoft.com/zh-cn/dd793599.aspx
use master
go
create master key encryption by password='Yukon900'
go
create certificate certificate_TDE_Sample with subject='TDE_sample'
go
use TDE_Sample_Database
go
create database encryption key
with algorithm=AES_128--AES_192|AES_256|TRIPLE_DES_3KEY
encryption by server certificate certificate_TDE_Sample
go
alter database TDE_Sample_Database set encryption on
GO
select *from sys.dm_database_encryption_keys
where database_id=DB_ID()
go
select *from sys.dm_database_encryption_keys
where database_id=DB_ID()
go
create master key encryption by password='Yukon900'
go
create certificate certificate_TDE_Sample with subject='TDE_sample'
go
use TDE_Sample_Database
go
create database encryption key
with algorithm=AES_128--AES_192|AES_256|TRIPLE_DES_3KEY
encryption by server certificate certificate_TDE_Sample
go
alter database TDE_Sample_Database set encryption on
GO
select *from sys.dm_database_encryption_keys
where database_id=DB_ID()
go
select *from sys.dm_database_encryption_keys
where database_id=DB_ID()