Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Encryption on? Expand / Collapse
Author
Message
Posted Wednesday, October 30, 2013 1:16 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Yesterday @ 4:54 PM
Points: 136, Visits: 1,084
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.
Post #1509920
Posted Wednesday, October 30, 2013 2:06 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Yesterday @ 4:12 PM
Points: 1,194, Visits: 2,666
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



----------------------------------------------------------------------------
My LinkedIn profile - LinkedIn
Sacramento SQL Server users group - http://sac.sqlpass.org
My blog - http://www.expressnetsolutions.com/sqldch
Follow me on Twitter - @SQLDCH
----------------------------------------------------------------------------

Yeah, well...The Dude abides.
Post #1509933
Posted Thursday, October 31, 2013 12:22 PM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Wednesday, April 16, 2014 8:46 AM
Points: 845, Visits: 2,331
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.
Post #1510374
Posted Thursday, October 31, 2013 12:25 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 11:24 AM
Points: 32,781, Visits: 14,942
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
Post #1510375
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse