SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Encryption on?


Encryption on?

Author
Message
kd11
kd11
Old Hand
Old Hand (348 reputation)Old Hand (348 reputation)Old Hand (348 reputation)Old Hand (348 reputation)Old Hand (348 reputation)Old Hand (348 reputation)Old Hand (348 reputation)Old Hand (348 reputation)

Group: General Forum Members
Points: 348 Visits: 1492
Correct me if I'm wrong, If I want to tell if encryption is turn on (Data written to tables, backups, etc.) in any of my databases I can just query "sys.dm_db_persisted_sku_features" correct.
SQLDCH
SQLDCH
SSCrazy
SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)

Group: General Forum Members
Points: 2266 Visits: 3399
If you're asking if Transparent Data Encryption is enabled, you can query sys.databases:


select name, is_encrypted
from sys.databases
where database_id > 4



----------------------------------------------------------------------------
Sacramento SQL Server users group - http://sac.sqlpass.org
Follow me on Twitter - @SQLDCH
----------------------------------------------------------------------------

Yeah, well...The Dude abides.
Nadrek
Nadrek
SSCommitted
SSCommitted (2K reputation)SSCommitted (2K reputation)SSCommitted (2K reputation)SSCommitted (2K reputation)SSCommitted (2K reputation)SSCommitted (2K reputation)SSCommitted (2K reputation)SSCommitted (2K reputation)

Group: General Forum Members
Points: 1985 Visits: 2729
Have a table that isn't compressed, put in a CHAR(20), insert a bunch of rows of 'aaaaaaaaaaaaaaaaaaaa'. Checkpoint the write.

Open up a file (.mdf or backup file) in a hex editor like HxD.

If you see 'aaaaaaaaaaaaaaaaaaaa' in it, it's not encrypted. If you see other readable data (names, addresses, whatever other data you have) in it, it's not encrypted.

If you see random garbage (statistical character analysis shows roughly even numbers of every character), then it's at least compressed, and may or may not be encrypted, as both encryption and compression ideally result in data that is indistinguishable from random noise.
Steve Jones
Steve Jones
SSC Guru
SSC Guru (66K reputation)SSC Guru (66K reputation)SSC Guru (66K reputation)SSC Guru (66K reputation)SSC Guru (66K reputation)SSC Guru (66K reputation)SSC Guru (66K reputation)SSC Guru (66K reputation)

Group: Administrators
Points: 66096 Visits: 19120
If you have data that is encrypted at a cell level (symmetric/asymmetric encryption), you can't query to determine the data is encrypted.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search