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.

    2422666520608881569521032841862
    http://www.karaokeler.com/karadir-kaslarin-karaoke/#comment-73580 http://naturalbodybuilding.ru/ru/node/26352#comment-371224 https://www.nflmessageboard.com/showthread.php?tid=108069&pid=213002#pid213002 http://naturalbodybuilding.ru/ru/node/26352#comment-369232 http://remgen.ru/blog/starter-0001363112-3079177r1-81262210007-79026098-01308151-9983633-296190836-09983633-1308151#comment_445622 http://behindthebrilliance.com/behind-brilliance-72-list-2016/?unapproved=146862&moderation-hash=b50cffdda98cdacc7bff9a396bb7f362#comment-146862 http://naturalbodybuilding.ru/ru/node/26352#comment-365638 http://forum.irancognitivescience.com/showthread.php?tid=35664 http://kafferecept.se/recipe/chai-latte/?unapproved=860660&moderation-hash=2737896af389d4d492ac203a24274d3c#comment-860660 http://metr.by/object/2086449 http://elpregonero.mx/math-problem-solving-activities-pinterest/?unapproved=1574694&moderation-hash=3f64610f452b4e300706369c96a0eca0#comment-1574694 http://realrawtruths.com/2016/03/hot-topic_-the-power-of-the-human-spirit/?unapproved=262541&moderation-hash=bd49a0adab4be8d4c14e467d33b2e1a6#comment-262541 http://metr.by/object/2086710 http://suiteusergroup.com/suiteforum/showthread.php?tid=113318 http://metr.by/object/2077514
    http://nauc.info/forums/viewtopic.php?f=3&t=15773790 http://www.tekmonkey.us/index.php?topic=18741.new#new http://nauc.info/forums/viewtopic.php?f=3&t=15763665 http://www.ankarac.com/index.php/topic,78739.new.html#new http://lindner-essen.de/forum/viewtopic.php?f=3&t=2448250 http://bbs.hpc-hp.com/viewtopic.php?f=9&t=37136 https://forum.s37h.com/showthread.php?tid=556 https://www.emrald.de/forum/viewtopic.php?f=3&t=820194 http://www.labor-economics.org/forum/viewtopic.php?f=5&t=1706894 http://67.205.147.96/viewtopic.php?f=2&t=46486 https://amazonassociate.ca/viewtopic.php?f=7&t=57444 http://gaycommunity.vip/viewtopic.php?f=9&t=8800 http://caradaftarayams128.com/index.php/topic,19076.new.html#new http://nauc.info/forums/viewtopic.php?f=3&t=15775529 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=529665&sid=fba71d812c43b286653e1f57e57a7edc http://www.lindner-essen.de/forum/viewtopic.php?f=3&t=2444540 http://nauc.info/forums/viewtopic.php?f=3&t=15761119 http://nauc.info/forums/viewtopic.php?f=3&t=15751655 http://staycationinthe.uk/viewtopic.php?f=11&t=29148 http://users.atw.hu/videocsacska/viewtopic.php?p=260090#260090 http://philippe.payro.free.fr/forum/viewtopic.php?f=2&t=141348 http://nauc.info/forums/viewtopic.php?f=3&t=15772828 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=527451&sid=71c63801295b563e8607a0671aefb7f1 http://nauc.info/forums/viewtopic.php?f=3&t=15768732 http://hker.live/viewtopic.php?f=4&t=547083
    http://prozon.org.pl/forum/viewtopic.php?pid=69657#p69657 http://cafekulinarya.co.uk/?attachment_id=118&unapproved=243704&moderation-hash=b06c8b08d913db054e05ce2be24b429e#comment-243704 http://periodicomicasa.com.mx/periodico-mi-casa-enero-2017/?unapproved=27032&moderation-hash=7ace225eedbc14f2c859f96599f869a9#comment-27032 http://iamgalla.com/2012/10/galla-takes-colorado-1/?unapproved=8995119&moderation-hash=13ca8d79ae2f76187fce7818a868d494#comment-8995119 http://suiteusergroup.com/suiteforum/showthread.php?tid=113228 http://193167.kharkovf.web.hosting-test.net/viewtopic.php?f=11&t=299048 https://www.successdigestforum.com/viewtopic.php?f=6&t=1858628 https://highschoolhouseparty.com/weckingball-push-up-contest/?unapproved=375432&moderation-hash=79c14b99de25c01ce6868d24e900fe1d#comment-375432 http://rmichels-dev-project.appspot.com/guestbook/4776736911785984 http://xn--80ajgfwchmneec5bzj.xn--p1ai/index.php/classifieds/automotive/ad/dhafx,154251 https://kaiserinsucks.lol/forums/showthread.php?tid=467136 http://www.atworkwerkt.nl/uncategorized/hello-world/?unapproved=3550471&moderation-hash=1062cf8b148d0ab53f8ae0692e9864e7#comment-3550471 http://naturalbodybuilding.ru/ru/node/26352#comment-371860 https://test.club-irbis.ru/viewtopic.php?pid=464316 https://www.source-forum.com/showthread.php?tid=161498
    http://nauc.info/forums/viewtopic.php?f=3&t=15756511 http://protee.guru/viewtopic.php?f=8&t=2517582 http://67.205.147.96/viewtopic.php?f=2&t=48074 https://mywork2.ru/speak/viewtopic.php?f=2&t=633868 http://www.school36-tambov.ru/forum/viewtopic.php?f=17&t=469739 http://wafnobi.com/comm/viewtopic.php?f=2&t=279348 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=473241 https://share1s.net/viewtopic.php?f=21&t=1373489 http://philippe.payro.free.fr/forum/viewtopic.php?f=2&t=141462 http://nauc.info/forums/viewtopic.php?f=3&t=15771894 https://forum.latimojong.com/viewtopic.php?f=10&t=34662 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2718970 http://www.driverconnection.net/forums/viewtopic.php?pid=268020#p268020 https://africainvestmentgroupint.com/index.php/forum/welcome-mat/34846-online-2021#34853 http://www.unraveled.net/phpbb/viewtopic.php?f=6&t=2259182 http://fromateakdeck.com/forum/viewtopic.php?f=4&t=101548 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2720650 http://nauc.info/forums/viewtopic.php?f=3&t=15777841 http://lindner-essen.de/forum/viewtopic.php?f=3&t=2444380 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=535776&sid=d501afe2a84bf937a082ac6e523a5843 http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=405550 http://nauc.info/forums/viewtopic.php?f=3&t=15750173 http://nauc.info/forums/viewtopic.php?f=3&t=15759721 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=531920&sid=de92889721733dc511fd97b0c5e7350c https://hackz.com.br/showthread.php?tid=215487&pid=802642#pid802642

Leave a Reply

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