no, you need to set the database encryption key and then enable the encryption on the database...try this demo on test box and understand
so, you need to find your certificate - select * from sys.certificates and use that (replace myserverCert in the code below)
--assume that I already have a master key and certificate - myServerCert. refer msdn example
https://msdn.microsoft.com/en-us/library/Bb934049.aspx?f=255&MSPPError=-2147217396
create database test2 go USE test2 GO CREATE DATABASE ENCRYPTION KEY WITH ALGORITHM = AES_128 ENCRYPTION BY SERVER CERTIFICATE MyServerCert; GO ALTER DATABASE test2 SET ENCRYPTION ON; GO
The following example illustrates encrypting and decrypting the AdventureWorks2012 database using a certificate installed on the server named MyServerCert.
USE master; GO CREATE MASTER KEY ENCRYPTION BY PASSWORD = '<UseStrongPasswordHere>'; go CREATE CERTIFICATE MyServerCert WITH SUBJECT = 'My DEK Certificate'; go USE AdventureWorks2012; GO CREATE DATABASE ENCRYPTION KEY WITH ALGORITHM = AES_128 ENCRYPTION BY SERVER CERTIFICATE MyServerCert; GO ALTER DATABASE AdventureWorks2012 SET ENCRYPTION ON; GO
- Proposed as answer by Vero4ka Friday, July 17, 2015 11:36 AM
I'm going to have to give this a try.
Would I have to run this on every database on my sql instance?