How Using the Windows 2000 Encrypted File System to Secure SQL Server Databases and Backups Affects SQL Server's Performance

Chris is the author of the book, SQL Server for the Oracle DBA

Those running Windows 2000 can take advantage of the EFS (encrypted file system) for encrypting SQL Server database and/or backup files. In some organizations, encrypting data is mandatory, and as you might expect, it can exact a performance penalty. In this article, I will take a brief look at how you set up encryption for SQL Server and Windows 2000, and then run some tests to see how it affects SQL Server’s performance.

How to Turn on Encryption for SQL Server Databases and Backups

To turn on the encrypted file system in Windows 2000 for use by SQL Server:

  • Shutdown your database instance.
  • Login with the service account the SQL Server instance is using.
  • Select the properties of the folder(s) in which the database files reside using Windows Explorer.
  • Select the advanced option button and follow the prompts to encrypt the files/folders.
  • Re-start the SQL Server service.
  • Verify the successful start-up of the instance and databases affected via the encryption (or create databases after the fact over the encrypted directories).
  • Verify encryption of the database files via cipher.exe.

If you attempt to start the service as any user other than the user that encrypted the database data files, the instance will not start and/or your database will be set to suspect.

Here is an example of SQL Server error log entry showing what happens if you start the service with an account other than the one used to encrypt the files:

udopen: Operating system error 5(error not found) during the creation/opening of physical device E:cktempefsefs_Data.MDF.

FCB::Open failed: Could not open device E:cktempefsefs_Data.MDF for virtual device number (VDN) 1.

udopen: Operating system error 5(error not found) during the creation/opening of physical device E:cktempefsefs_Log.LDF.

FCB::Open failed: Could not open device E:cktempefsefs_Log.LDF for virtual device number (VDN) 2.

As you might expect, encrypting your SQL Server data negatively affects SQL Server’s performance. How much it will affect speed is a tough to measure as there are so many factors to consider. For example:

  • Hardware vendor chosen
  • I/O drives and OS version and patch level
  • Disk vendor, speed, cache
  • RAID levels, channels, disk interconnect
  • RAID controller type, cache, vendor
  • Software-based caching models and/or BIOS patches
  • OS configuration parameters, service packs and registry “tweaks”

and perhaps more, can all affect SQL Server’s encrypted performance.

Testing How Windows 2000 Encryption Affects SQL Server’s Performance

The testing of EFS performance using SQL Server database files was done on the following hardware:

HP NetServer, Dual PIII 850Mhz, 512Mb RAM, SCSI 160 RAID-1 18Gb Disks

The tests were repeated five times, with the average figures shown below. No other user or application was running during the tests. The databases were identical in terms of their size, recovery model, collation and other basic settings.

Before beginning the tests, I tested to be sure that encryption was working. This can be done by typing the following at the command line:

cipher

The results of this command were:

Listing d:
New files added to this directory will be encrypted.

E EFSTEST_Data.MDF
E EFSTEST_Log.LDF

The results above indicate that encryption is on and that there are two existing files that are encrypted.

Next, from within Query Analyzer, I set I/O time and statistics to on, as follows:

set statistics io on
set statistics time on

And before each test, I ran the following code in order to clear out the memory buffer and to force a checkpoint.

dbcc dropcleanbuffers
checkpoint

Continues…

0 Replies to “How Using the Windows 2000 Encrypted File System to Secure SQL Server Databases and Backups Affects SQL Server's Performance

  1. !!!Azdmnzbzxd says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    3357369820222637664424506
    https://forum.cctvtechforum.com/Thread-kcsuqqfe http://ngoinhachung.net/diendan/forum.php?mod=viewthread&tid=2435561&pid=5327319&page=7468&extra=#pid5327319 http://spruance.net/viewtopic.php?f=1&t=99828 https://rooftoppros.wordpress.com/?contact-form-id=92&contact-form-sent=958644&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=35a7b1a1ba https://webboard.sport.sanook.com/forum//smi_preview2.php?site=https://webboard.sport.sanook.com/forum/&ID_BOARD=7&ID_TOPIC=11828212&ID_MSG=30282466 http://naturalbodybuilding.ru/ru/node/13885#comment-379923 https://webboard.auto.sanook.com/forum//smi_preview2.php?site=https://webboard.auto.sanook.com/forum/&ID_BOARD=497&ID_TOPIC=11828224&ID_MSG=30282478 http://juniorpraha.cz/navstevni-kniha/navstevni-kniha-tj-junior-praha#comment-8461 https://webboard.guru.sanook.com/forum//smi_preview2.php?site=https://webboard.guru.sanook.com/forum/&ID_BOARD=561&ID_TOPIC=11828218&ID_MSG=30282472 http://ngoinhachung.net/diendan/forum.php?mod=viewthread&tid=2435561&pid=5327325&page=7468&extra=#pid5327325 http://www.holistichappinessblog.com/apple-cheddar-kale-salad/?unapproved=1654248&moderation-hash=b294183b695947199803ff951b8776ba#comment-1654248 http://ngoinhachung.net/diendan/forum.php?mod=viewthread&tid=2435561&pid=5327320&page=7468&extra=#pid5327320 http://naturalbodybuilding.ru/ru/node/13885#comment-379925 https://kusbaz.ru/viewtopic.php?f=45&t=225256 http://slapinsky.com/nature/the-struggle-is-real/?unapproved=110012&moderation-hash=0a2c90040d5ca8148662831898a1b77a#comment-110012
    http://www.voip2voice.com/viewtopic.php?f=8&t=1689&p=16982#p16982 https://cartschat.com/viewtopic.php?f=3&t=29907 http://freelineskate.free.fr/forum/viewtopic.php?f=2&t=134605 http://www.mbwguitars.com/forum/viewtopic.php?f=5&t=21271 http://nauc.info/forums/viewtopic.php?f=3&t=15747125 https://amazonassociate.ca/viewtopic.php?f=7&t=57353 http://protee.guru/viewtopic.php?f=8&t=2515483 http://odinofficial.com/forums/viewtopic.php?f=8&t=7480 http://ictopschool.one/forum/index.php/topic,206380.new.html#new http://blenderturkiye.com/viewtopic.php?f=13&t=939216 http://www.blenderturkiye.com/viewtopic.php?f=13&t=939213 https://medalladehonor.cl/foro/index.php?/topic/593274-%D0%BA%D1%83%D1%80%D1%8F%D1%87%D0%B8%D0%B9-%D0%B7%D0%B0%D0%B1%D1%96%D0%B3-%EA%88%9B-online-%D0%BA%D1%83%D1%80%D1%8F%D1%87%D0%B8%D0%B9-%D0%B7%D0%B0%D0%B1%D1%96%D0%B3-%D0%BC%D1%83%D0%BB%D1%8C%D1%82-2021-%D0%B3%D0%BE%D0%B4%D0%B0-%D1%81%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C-%D0%B2-%D0%B2%D1%8B%D1%81%D0%BE%D0%BA%D0%BE%D0%BC-%D0%BA%D0%B0%D1%87%D0%B5%D1%81%D1%82%D0%B2%D0%B5/ http://staycationinthe.uk/viewtopic.php?f=11&t=27706 http://nauc.info/forums/viewtopic.php?f=3&t=15747127 http://israelidebate.com/opinions/viewtopic.php?f=3&t=1493937 http://oleksy-bau.de/index.php/forum/welcome-mat/1015170-2021#1014436 https://bitcoinlove.ca/forum/viewtopic.php?f=3&t=12392 http://www.wasasando.com/viewtopic.php?f=31&t=54415 https://sextingsite.com/viewtopic.php?f=15&t=487972 https://bbwhirlwind.online/viewtopic.php?f=2&t=278171 http://protee.guru/viewtopic.php?f=8&t=2515487 http://cyberweb.pt/viewtopic.php?f=3&t=66598 http://nauc.info/forums/viewtopic.php?f=3&t=15747132 https://lysto-forum.tue-image.nl/index.php?topic=143827.new#new https://www.radiopeep.com/forum/viewtopic.php?f=8&t=60&p=91560#p91560
    http://filmiskane.nu/?page_id=2&unapproved=1552241&moderation-hash=04066bb2249462857c4cd7fe4a917765#comment-1552241 http://naturalbodybuilding.ru/ru/node/13885#comment-379927 http://naturalbodybuilding.ru/ru/node/13885#comment-379924 http://www.saltyfig.com/2016/05/quiche-with-goat-cheese-and-asparagus/?unapproved=58514&moderation-hash=4fa6d2bb7bef61f383d01a3c98e0a49a#comment-58514 https://forum.rioforense.com.br/showthread.php?tid=5701&pid=7016#pid7016 http://www.chopchopmoocs.com/topic-5-observation-analogy/?unapproved=79151&moderation-hash=d87acbdc4c3c3b7d6be45600b72a4e89#comment-79151 https://jewelant.wordpress.com/?contact-form-id=28881&contact-form-sent=565061&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=9992c635a4 http://naturalbodybuilding.ru/ru/node/13885#comment-379928 http://wmucsports.net/terps-drop-series-finale-to-no-18-michigan/?unapproved=224327&moderation-hash=bc8a2a8be7ef3f91d7411f02dc03b3c0#comment-224327 http://xn--80ajgfwchmneec5bzj.xn--p1ai/index.php/classifieds/automotive/ad/dhafx,155015 https://www.successdigestforum.com/viewtopic.php?f=6&t=1873247 https://www.successdigestforum.com/viewtopic.php?f=6&t=1873244 https://www.successdigestforum.com/viewtopic.php?f=6&t=1873242 https://test.club-irbis.ru/viewtopic.php?pid=465882 http://rustlandia.pl/showthread.php?tid=8385
    http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=524454&sid=6fc125bac5b681159ee67d70cc2c1d9d http://www.15forum.com/showthread.php?tid=419936 https://www.radiopeep.com/forum/viewtopic.php?p=91540 http://www.safakroleplayfivem.com/index.php?topic=181358.new#new http://calvarychapeljoco.com/new/index.php/forum/welcome-mat/1247746-2021-1080#1247715 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=524455&sid=48c9c914532a029210c3bb88d6656ed8 http://rznklad.ru/viewtopic.php?f=26&t=78788 http://swiadomyprojektant.pl/forum/viewtopic.php?f=23&t=10192 http://nauc.info/forums/viewtopic.php?f=3&t=15747134 https://krugozorov.ru/forum/messages/forum1/topic1/message332412/?result=reply#message332412 https://lysto-forum.tue-image.nl/index.php?topic=143828.new#new http://forumseramik.com/viewtopic.php?f=10&t=12210 https://africainvestmentgroupint.com/index.php/forum/welcome-mat/34563-2021#34570 https://teedinzone.com/webboard/index.php?topic=116484.new#new http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=132506&Itemid=194#132788 http://calvarychapeljoco.com/new/index.php/forum/welcome-mat/1247755-115-115-2021#1247724 http://nauc.info/forums/viewtopic.php?f=3&t=15747136 http://nauc.info/forums/viewtopic.php?f=3&t=15747137 https://forum.prasinoi.eu/viewtopic.php?f=19&t=975713 https://paybackking.com/forum/viewtopic.php?f=8&t=18543 http://nauc.info/forums/viewtopic.php?f=3&t=15747139 http://sound-book.net/viewtopic.php?f=5&t=41439 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=524456&sid=387c972b85edc13d2d3ac9a0f1cb5a46 http://www.driverconnection.net/forums/viewtopic.php?pid=267715#p267715 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=469396

Leave a Reply

Your email address will not be published. Required fields are marked *