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.

    37238962462226375305338375
    https://community.thelovinggarden.com/showthread.php?tid=12107&pid=15633#pid15633 https://experthorticulture.com/forum/showthread.php?tid=3261 http://naturalbodybuilding.ru/ru/node/26352#comment-362262 https://emiratehub.ae/thread-249264.html https://webboard.news.sanook.com/forum//smi_preview2.php?site=https://webboard.news.sanook.com/forum/&ID_BOARD=258&ID_TOPIC=11806234&ID_MSG=30260302 https://audiosellerz.com/forums/showthread.php?tid=175547 http://amygibbs.co.uk/print-quote-request/?contact-form-id=84&contact-form-sent=166566&contact-form-hash=3d9118dc83eac0b0223b0f8c58630814c8e97b6b&_wpnonce=dab38e3b2e http://www.warrenrodwell.com/2015/04/read-the-book-up-to-you/read-the-book-csp/?unapproved=38190&moderation-hash=32bb31a2365292396305a0d920ac301b#comment-38190 http://realrawtruths.com/2016/03/hot-topic_-the-power-of-the-human-spirit/?unapproved=262677&moderation-hash=69970bdd020a97e9c51c032c0ec52f2e#comment-262677 https://billconall.com/readers-comments/comment-page-1/?contact-form-id=330&contact-form-sent=276072&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=e5323093e7 http://naturalbodybuilding.ru/ru/node/26352#comment-362264 http://naturalbodybuilding.ru/ru/node/26352#comment-362265 http://post.12gates.net/showthread.php?tid=349522&pid=695160#pid695160 http://periodicomicasa.com.mx/periodico-mi-casa-enero-2017/?unapproved=26874&moderation-hash=2d81a6f84b8d7e7d7cbc6cf5871e4762#comment-26874 https://webboard.search.sanook.com/forum//smi_preview2.php?site=https://webboard.search.sanook.com/forum/&ID_BOARD=288&ID_TOPIC=11806240&ID_MSG=30260308
    http://sd.life-rp.ro/viewtopic.php?f=72&t=1160 http://zatoxgaming.org/forums/viewtopic.php?f=5&t=702682 http://www.cbr650.net/viewtopic.php?f=11&t=7818 http://pakimmigration.com/viewtopic.php?f=12&t=3727 http://xn—-8sble4ao1ag1b8c.online/viewtopic.php?f=21&t=19671 https://g-play.rs/viewtopic.php?f=21&t=2413 http://forum.pokerfishka.com/main/9-10max/215527-akademiya-magiji-smotret-onlajn-akademiya-magiji-mult-2021-smotret-onlajn-russkij#218183 https://ufarms.ru/viewtopic.php?f=3&t=3603 https://sieuthimini.net/viewtopic.php?f=2&t=2751 http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=87224&Itemid=194#87209 http://smartreport.tech/forum/showthread.php?tid=2988 http://theamazonlegacy.com/phpBB3/viewtopic.php?f=8&t=131585 http://67.205.147.96/viewtopic.php?f=2&t=4151&p=38767#p38767 http://uoleps.co.uk/viewtopic.php?f=19&t=3455 http://www.cbr650.net/viewtopic.php?f=11&t=7819 http://www.wafnobi.com/comm/viewtopic.php?f=2&t=203555 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2689596 https://mobililenakit.com/showthread.php?tid=7065 https://ufarms.ru/viewtopic.php?f=3&t=3602 http://www.la-bottega.pl/forum/viewtopic.php?f=16&t=2476 http://forumjokerasia.com/showthread.php?tid=13284 http://pakimmigration.com/viewtopic.php?f=12&t=3728 http://abc.hiso.club/viewtopic.php?f=12&t=28272 http://gaycommunity.vip/viewtopic.php?f=9&t=2614 http://www.school36-tambov.ru/forum/viewtopic.php?f=17&t=438854
    https://highschoolhouseparty.com/weckingball-push-up-contest/?unapproved=371904&moderation-hash=ae9adf7c53fec1dd3c7569daad0db6f1#comment-371904 http://gimpel.ru/reviews#comment-176538 https://stantonmigraineprotocol.com/?contact-form-id=6&contact-form-sent=429236&contact-form-hash=42e30d9202178785fca97b3640d431531fa3216b&_wpnonce=c55599e422 https://webboard.auto.sanook.com/forum//smi_preview2.php?site=https://webboard.auto.sanook.com/forum/&ID_BOARD=497&ID_TOPIC=11806246&ID_MSG=30260314 http://ngoinhachung.net/diendan/forum.php?mod=viewthread&tid=2435561&pid=5317356&page=7234&extra=#pid5317356 http://www.saltyfig.com/2016/05/quiche-with-goat-cheese-and-asparagus/?unapproved=57262&moderation-hash=117ac76b8490b9971ae95393571eb26f#comment-57262 https://www.hercommonthread.com/2019/02/04/a-new-chapter/?unapproved=128071&moderation-hash=3566fa80b3da80b7f0ddada5ca7158dd#comment-128071 http://www.anstiss.com/login/?contact-form-id=widget-text-9&contact-form-sent=310919&contact-form-hash=226da66c92c2bee8af63abc8086fc7e635d09b21&_wpnonce=9224a8ec67 http://iamgalla.com/2012/10/galla-takes-colorado-1/?unapproved=8993734&moderation-hash=16f8a01d0f645cab4be2e6778150ce7d#comment-8993734 http://cemiteriodosazulejossc.com.br/?cf_er=_cf_process_60b85b080fae3 http://ngoinhachung.net/diendan/forum.php?mod=viewthread&tid=2435561&pid=5317363&page=7235&extra=#pid5317363 http://science.ftu.ac.th/?p=1006&unapproved=130456&moderation-hash=9de06ffab649a3e896c00ad0f6101723#comment-130456 http://science.ftu.ac.th/?p=1006&unapproved=130457&moderation-hash=e2d3a2f4b4472a8878d3fef354720e8b#comment-130457 http://archaeopteryxonline.com/content/contemporary-music-and-sublime?page=2665#comment-258691 http://kafferecept.se/recipe/chai-latte/?unapproved=860375&moderation-hash=45c90c7d702643a17cd3fff0cc6290ab#comment-860375
    http://trudixcrs.com/viewtopic.php?f=5&t=3464 http://forum.vkportal.ba/viewtopic.php?f=18&t=237&p=24661#p24661 http://forum.kopkon.ru/viewtopic.php?f=1&t=11868 http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=354801 http://staycationinthe.uk/viewtopic.php?f=11&t=9199 http://forum.hilfe-fuer-marco.de/news-allgemein-f64/%C2%AB%D0%A1%D0%BE%D1%8E%D0%B7-%D0%B7%D0%B2%D0%B5%D1%80%D0%B5%D0%B9-%C2%BB-%E2%94%AB-online-%5C-%D0%A1%D0%BE%D1%8E%D0%B7-%D0-t47307.html http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=354800 http://fr.gopinball.com/forum/viewtopic.php?f=6&t=455504 http://kriptoturkiye.org/viewtopic.php?f=34&t=6423 http://zk-balt.ru/viewtopic.php?f=1&t=5430 http://users.atw.hu/videocsacska/viewtopic.php?p=252545#252545 https://sieuthimini.net/viewtopic.php?f=2&t=2752 https://essens-club.ru/viewtopic.php?f=13&t=3634 http://ictopschool.one/forum/index.php/topic,129422.new.html#new https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=316120 https://bitcoinlove.ca/forum/viewtopic.php?f=3&t=5220 http://trudixcrs.com/viewtopic.php?f=5&t=3466 http://contriman.com/showthread.php?tid=151254&pid=514888#pid514888 https://essens-club.ru/viewtopic.php?f=13&t=3635 https://www.fxforecasting.com/viewtopic.php?f=5&t=7944 http://skyscapelive.com/viewtopic.php?f=8&t=5050 https://paybackking.com/forum/viewtopic.php?f=8&t=5789 https://cartschat.com/viewtopic.php?f=3&t=8894 http://www.voip2voice.com/viewtopic.php?f=8&t=1689&p=10351#p10351 http://www.voip2voice.com/viewtopic.php?f=8&t=1689&p=10354#p10354

Leave a Reply

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