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.

    7509931948222637637482105
    http://www.anstiss.com/contact-us/?contact-form-id=191&contact-form-sent=310844&contact-form-hash=3dec796194dbd8a17bf78b7372750e4a7d845e8d&_wpnonce=ee36b9ab13 http://naturalbodybuilding.ru/ru/node/13885#comment-360611 http://gimpel.ru/reviews#comment-176404 http://naturalbodybuilding.ru/ru/node/13885#comment-360613 http://mbrito.uosdesigndegrees.com/mybb/showthread.php?tid=750828 http://www.diegodicamillo.com.ar/blog/2010/01/29/cant-create-a-new-thread-errno-12-if-you-are-not-out-of-available-memory-you-can-consult-the-manual-for-a-possible-os-dependent-bug/comment-page-1/?unapproved=770968&moderation-hash=f00799fdd94d238069461a850b1d6ed2#comment-770968 http://gamingrev.com/2010/06/02/forum-is-back-online/?unapproved=68384&moderation-hash=f7aa32fd3b1d46410286c32130823936#comment-68384 http://gimpel.ru/reviews#comment-176403 https://sabettingforum.com/forum-3/topic/wbtgwqix https://highschoolhouseparty.com/weckingball-push-up-contest/?unapproved=371351&moderation-hash=d376e508792dd17fc8b291ebc7d3edfb#comment-371351 https://cryptographybuzz.com/portsmash-hyper-threading-decryption-keys/?unapproved=551953&moderation-hash=031df6d62fae17925912df3da34e25e9#comment-551953 http://bodhisarango.com/seminar-topics?unapproved=4662535&moderation-hash=8262387d56261125962f885a5323cc1b#comment-4662535 http://www.diegodicamillo.com.ar/blog/2010/01/29/cant-create-a-new-thread-errno-12-if-you-are-not-out-of-available-memory-you-can-consult-the-manual-for-a-possible-os-dependent-bug/comment-page-1/?unapproved=770973&moderation-hash=2e96d136d4a50c4afd5a1926a2449ec7#comment-770973 http://naturalbodybuilding.ru/ru/node/13885#comment-360617 http://ngoinhachung.net/diendan/forum.php?mod=viewthread&tid=2435561&pid=5316370&page=7186&extra=#pid5316370
    http://nauc.info/forums/viewtopic.php?f=3&t=15751210 https://junkraiders.cl/foro/viewtopic.php?f=3&t=63623 http://forum.vkportal.ba/viewtopic.php?f=17&t=648&p=44843#p44843 http://myweddinglight.us/index.php/topic,12675.new.html#new http://discustorming.com/viewtopic.php?f=2&t=148218 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=526051&sid=090cd1dd44c185fac0cfb1aa182ffdee http://nauc.info/forums/viewtopic.php?f=3&t=15751213 http://nauc.info/forums/viewtopic.php?f=3&t=15751215 http://nauc.info/forums/viewtopic.php?f=3&t=15751217 http://tipiruem.bestforums.org/viewtopic.php?f=2&t=89008 https://forum.wdwnorth.com/viewtopic.php?f=4&t=196670 http://generator.altervista.org/viewtopic.php?f=2&t=17580 http://banglaforum.net/forum/viewtopic.php?f=29&t=389440 http://nauc.info/forums/viewtopic.php?f=3&t=15751219 https://forum.nebula-galaxia.de/viewtopic.php?f=2&t=556020 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=526053&sid=33c764ab9a3b320cf9d61415460de3a0 https://forum.wdwnorth.com/viewtopic.php?f=4&t=196672 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=469923 http://nauc.info/forums/viewtopic.php?f=3&t=15751223 http://nauc.info/forums/viewtopic.php?f=3&t=15751225 http://www.ankarac.com/index.php/topic,74030.new.html#new http://nauc.info/forums/viewtopic.php?f=3&t=15751226 http://nauc.info/forums/viewtopic.php?f=3&t=15751230 http://lasertrace.nl/forum/viewtopic.php?f=6&t=1168631 https://www.dumankayahifit.com/index.php?topic=34236.new#new
    http://naturalbodybuilding.ru/ru/node/13885#comment-360615 https://rawsugarstudio.com/2015/09/arlo-guthrie-coming-to-lorain-palace-october-3rd/?unapproved=232679&moderation-hash=0cd300a4b5c10f41b1576e038d44825c#comment-232679 http://www.holistichappinessblog.com/apple-cheddar-kale-salad/?unapproved=1652847&moderation-hash=166d465e16533ae0fe3261c772ea18df#comment-1652847 http://krikstynoms.lt/idejos-krikstynoms/kaip-puostis-krikstynoms?page=2721#comment-191289 https://www.successdigestforum.com/viewtopic.php?f=6&t=1856238 https://www.successdigestforum.com/viewtopic.php?f=6&t=1856243 https://www.sql-server-performance.com/w2k-filesystem-affects-performance/?unapproved=191806&moderation-hash=70798c5369b9202023db338a3e532f9b#comment-191806 https://test.club-irbis.ru/viewtopic.php?pid=461820 http://sexnzb.com/vmccvfdk-t601483.html http://metr.by/object/2077922 http://smartreport.tech/forum/showthread.php?tid=7243 http://forumturystyka.pl/showthread.php?tid=4620 http://www.game-train.de/index.php?task=view&id=997 https://drchdietfood.com/contact-us/?contact-form-id=115&contact-form-sent=72762&contact-form-hash=c6512087d731c07fc94f85f1dd7002bc31f64e81&_wpnonce=dc1bebe3b9 http://metr.by/object/2077928
    http://nauc.info/forums/viewtopic.php?f=3&t=15751228 http://oleksy-bau.de/index.php/forum/welcome-mat/1015695-2021-1080#1014961 https://taaforums.com/viewtopic.php?f=9&t=66490 https://tictocbay.com/viewtopic.php?f=19&t=9208 https://forum.btcpbrand.com/viewtopic.php?f=4&t=1004392 http://estetikvediyet.com/viewtopic.php?f=8&t=360444 https://bitexpert.club/viewtopic.php?f=5&t=608907 http://forumseramik.com/viewtopic.php?f=10&t=12294 https://www.dumankayahifit.com/index.php?topic=34234.new#new http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=526057&sid=6fed15d1910485211bbf0924d32c0737 http://estetikvediyet.com/viewtopic.php?f=8&t=360445 http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=132800&Itemid=194#133082 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=526058&sid=aedb64cb9e4ec234c47505eac6bc858c http://ca.gopinball.com/forum/viewtopic.php?f=6&t=513134 http://nauc.info/forums/viewtopic.php?f=3&t=15751235 https://mazdaclassic.cz/viewtopic.php?f=3&t=10528 http://nauc.info/forums/viewtopic.php?f=3&t=15751237 https://lasertrace.nl/forum/viewtopic.php?f=6&t=1168636 https://jimhelton.com/viewtopic.php?f=2&t=240720 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=469925 http://nauc.info/forums/viewtopic.php?f=3&t=15751238 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=9928&p=237155#p237155 http://nauc.info/forums/viewtopic.php?f=3&t=15751239 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=526060&sid=72f6e3fa5b32dcd44c7bdc51ffec0eb7 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2718317

Leave a Reply

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