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.

    444720952226371673330517
    https://kaiserinsucks.lol/forums/showthread.php?tid=465873 http://ntumatch.com/forum.php?mod=viewthread&tid=388584&extra= http://www.theworldwars.net/forum/showthread.php?tid=182313 http://diagnost.ee/pood/attachment/_13/?unapproved=216174&moderation-hash=a3c8a42b51364c71212591ac950ed423#comment-216174 http://www.game-train.de/index.php?task=view&id=1182 http://krikstynoms.lt/idejos-krikstynoms/kaip-puostis-krikstynoms?page=2720#comment-191199 http://beta.cqpolska.pl/showthread.php?tid=106738&pid=312938#pid312938 https://suppliertynews.com/contact/?contact-form-id=3&contact-form-sent=71723&contact-form-hash=35d9cdd79d171c4ff22c7543d3323a5594b1cad2&_wpnonce=91207b4217 http://skzebetin.almadeo.cz/forum/ http://www.ggevaluations.com/forum/showthread.php?tid=216129 http://metr.by/object/2076120 http://naturalbodybuilding.ru/ru/node/13885?page=11#comment-359051 http://metr.by/object/2076124 http://gamingrev.com/2010/06/02/forum-is-back-online/?unapproved=68159&moderation-hash=2701efb2482c3babf992094d968697e7#comment-68159 http://www.ggevaluations.com/forum/showthread.php?tid=216130
    http://q8c.net/viewtopic.php?f=2&t=3306 http://demo.ngofficiel.fr/viewtopic.php?p=226746#226746 http://savevernazza.com/forum/?mingleforumaction=viewtopic&t=593020#postid-322245 https://paybackking.com/forum/viewtopic.php?f=8&t=6903 https://watchmoviesonlinenow.org/index.php/topic,4663.new.html#new http://israelidebate.com/opinions/viewtopic.php?f=3&t=1257166 https://noblenetworks.co.uk/showthread.php?tid=3073 https://therockandduckshow.net/showthread.php?tid=75944&pid=145996#pid145996 http://bbs.hpc-hp.com/viewtopic.php?f=9&t=18508 http://protee.guru/viewtopic.php?f=8&t=2331517 https://traveldiscussions.com/viewtopic.php?f=8&t=64081 http://awhole.com/forum/viewtopic.php?f=7&t=88330 https://ninerp.com/forums/showthread.php?tid=76638 https://forum.uhleague.ru/viewtopic.php?f=14&t=13435 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?p=210782 http://www.tekmonkey.us/index.php?topic=7244.new#new http://www.cactusmountainrp.com/viewtopic.php?f=5&t=50875 http://sacovid19solution.com/viewtopic.php?f=3&t=201219 https://africainvestmentgroupint.com/index.php/forum/welcome-mat/31188-2021#31196 http://grassrootsforum.info/viewtopic.php?f=3&t=19045 http://forum.vkportal.ba/viewtopic.php?f=17&t=1150&p=26486#p26486 http://theamazonlegacy.com/phpBB3/viewtopic.php?f=8&t=131951 http://www.myacnestory.sg/forum/viewtopic.php?f=6&t=7014 https://www.fxforecasting.com/viewtopic.php?f=5&t=8879 https://mazdaclassic.cz/viewtopic.php?f=3&t=4135
    https://www.nflmessageboard.com/showthread.php?tid=107603 http://www.ulfholmer.se/?p=1&unapproved=181553&moderation-hash=ade6f01692ccce3e9c6d453ddb902638#comment-181553 http://ntumatch.com/forum.php?mod=viewthread&tid=388585&extra= https://redclayyoga.org/contact/?contact-form-id=6&contact-form-sent=122758&contact-form-hash=3dec796194dbd8a17bf78b7372750e4a7d845e8d&_wpnonce=d11a1f58ab http://www.game-train.de/index.php?task=view&id=1226 http://forum.naronanews.com/showthread.php?tid=160076&pid=474080#pid474080 http://post.12gates.net/showthread.php?tid=348158&pid=692648#pid692648 https://valgemetsa.eu/gallery/pildid/?unapproved=15080&moderation-hash=764f46325f95bc4d5b9cda08ac45857a#comment-15080 https://forum.cctvtechforum.com/Thread-dfjaoylq http://diagnost.ee/pood/attachment/_13/?unapproved=216175&moderation-hash=f3afdf2ceb78fab55d48ee293b6ffeeb#comment-216175 https://tomhuff.wordpress.com/about/?contact-form-id=2&contact-form-sent=695023&contact-form-hash=c426da521d31d5406fd89c0578178c19369e58a8&_wpnonce=5ed07c623b https://michaelmcgrinder.com/?contact-form-id=769&contact-form-sent=151426&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=e837a780e8 https://eraoflight.com/forum/?contact-form-id=widget-custom_html-30&contact-form-sent=269663&contact-form-hash=a1cbfc0ba18ffe5ea561bb4912566cea912d559e&_wpnonce=af3e302d51 http://naturalbodybuilding.ru/ru/node/13885?page=11#comment-359052 http://theartsglobetrotter.com/2015/09/jeff-koonss-sculpture-installed-in-florence-jeff-koons-installa-una-sua-scultura-a-firenze/?unapproved=80398&moderation-hash=f0f04755adde52282a8cc2734371eaa2#comment-80398
    http://forum.pokerfishka.com/main/9-10max/218088-mult-v-kino-vypusk-103-nekogda-grustit-onlajn-smotret-mult-v-kino-vypusk-103-nekogda-grustit-multfilm-2021-goda-onlajn-v-hd#220743 http://forumseramik.com/viewtopic.php?f=10&t=4208 http://philippe.payro.free.fr/forum/viewtopic.php?f=2&t=114470 http://bcafcomb.co.uk/viewtopic.php?f=4&t=894 https://bironi.ru/forum/messages/forum1/topic9/message392737/?result=reply#message392737 http://www.cbr650.net/viewtopic.php?f=11&t=8396 https://paybackking.com/forum/viewtopic.php?f=8&t=6904 https://teedinzone.com/webboard/index.php?topic=77287.new#new http://forum.vp-net.ro/showthread.php?tid=6929 http://www.piminigeria.com/index.php/en/forum/welcome-to-pimi-ghana-forum/244230-2021#244292 https://sieuthimini.net/viewtopic.php?f=2&t=3375 http://melevistas.com/viewtopic.php?f=4&t=1779550 http://skyscapelive.com/viewtopic.php?f=8&t=5559 https://www.festofsailtacoma.com/index.php?topic=183586.new#new http://labor-economics.org/forum/viewtopic.php?f=5&t=1675948 https://essens-club.ru/viewtopic.php?f=13&t=4419 https://sieuthimini.net/viewtopic.php?f=2&t=3374 http://labor-economics.org/forum/viewtopic.php?f=5&t=1675940 https://emiratehub.ae/thread-212600.html http://wafnobi.com/comm/viewtopic.php?f=2&t=228978 http://labor-economics.org/forum/viewtopic.php?f=5&t=1675990 http://labor-economics.org/forum/viewtopic.php?f=5&t=1675961 http://sound-book.net/viewtopic.php?f=5&t=24992 https://cp77forum.com/showthread.php?tid=42871 http://labor-economics.org/forum/viewtopic.php?f=5&t=1675981

Leave a Reply

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