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.

    37541798652226375517499068
    http://maroliver.com/en/452f-iv/?unapproved=109378&moderation-hash=d42152001d4b35a4c84209dacae47175#comment-109378 https://www.source-forum.com/showthread.php?tid=159504 http://theartsglobetrotter.com/2015/09/jeff-koonss-sculpture-installed-in-florence-jeff-koons-installa-una-sua-scultura-a-firenze/?unapproved=80445&moderation-hash=d0acef8100f44286db4be64d6879991c#comment-80445 http://portfoliosuperkayra.appspot.com/1226906359 http://post.12gates.net/showthread.php?tid=348379&pid=693028#pid693028 http://forum.naronanews.com/showthread.php?tid=148612&pid=474313#pid474313 http://post.12gates.net/showthread.php?tid=348379&pid=693029#pid693029 http://pregnancytracker.net/forum/index.php?topic=52373.new#new https://kusbaz.ru/viewtopic.php?f=45&t=223815 https://byazemanki.ucoz.ru/forum/15-9190-21#671488 http://beta.cqpolska.pl/showthread.php?tid=106803&pid=313049#pid313049 https://rooftoppros.wordpress.com/?contact-form-id=92&contact-form-sent=958060&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=5dfb9d8bd7 http://chippingnortonopticians.co.uk/cropped-img_4033-1-jpg/?unapproved=123864&moderation-hash=ad2071af9ecd24201bdfcfdac7375479#comment-123864 https://www.successdigestforum.com/viewtopic.php?f=6&t=1854929 https://europeanmemories.net/magazine/memory-a-hinge-between-past-and-present/?unapproved=15729&moderation-hash=36791eb4eacc81aedcdc0c77c7a81993#comment-15729
    http://grassrootsforum.info/viewtopic.php?f=3&t=18922 http://contriman.com/showthread.php?tid=151793&pid=517603#pid517603 http://contriman.com/showthread.php?tid=151789&pid=517599#pid517599 http://www.tekmonkey.us/index.php?topic=7065.new#new https://pluginhut.com/showthread.php?tid=27623 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=10633&p=210624#p210624 http://discustorming.com/viewtopic.php?f=2&t=111203 https://shortcels.co/index.php?/topic/131334-%D0%BA%D0%BE%D1%82-%D0%BF%D0%BE%D0%B4-%D0%BF%D1%80%D0%B8%D0%BA%D1%80%D1%8B%D1%82%D0%B8%D0%B5%D0%BC-%EA%80%BF-%D0%BE%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD-%D1%81%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C-%D0%BA%D0%BE%D1%82-%D0%BF%D0%BE%D0%B4-%D0%BF%D1%80%D0%B8%D0%BA%D1%80%D1%8B%D1%82%D0%B8%D0%B5%D0%BC-%D1%84%D0%B8%D0%BB%D1%8C%D0%BC-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-hd/ https://www.festofsailtacoma.com/index.php?topic=183434.new#new http://www.s-server.vip/viewtopic.php?f=1&t=171405&p=842964#p842964 https://watchmoviesonlinenow.org/index.php/topic,4560.new.html#new https://essens-club.ru/viewtopic.php?f=13&t=4342 http://ictopschool.one/forum/index.php/topic,141064.new.html#new http://sound-book.net/viewtopic.php?f=5&t=24838 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=440869 https://echokirova.ru/forum/messages/forum4/topic108299/message238310/?result=reply#message238310 http://www.mbwguitars.com/forum/viewtopic.php?f=5&t=3975 http://67.205.147.96/viewtopic.php?f=2&t=26871 http://www.tekmonkey.us/index.php?topic=7071.new#new http://opelfreunde-outsiders.de/include.php?path=forumsthread&threadid=933273&entries=0#post1498016 http://hiso.club/viewtopic.php?f=12&t=30702&p=47612#p47612 https://forum.btcpbrand.com/viewtopic.php?f=4&t=984904 https://www.covidforum.cz/viewtopic.php?f=10&t=1245 http://bbs.hpc-hp.com/viewtopic.php?f=9&t=18415 http://zk-balt.ru/viewtopic.php?f=1&t=6601
    http://metr.by/object/2076493 https://shortcels.co/index.php?/topic/137774-beyvqxlr/ https://www.kasanet.pl/thread-8072.html https://www.nflmessageboard.com/showthread.php?tid=107644 https://news.chapman.edu/2010/10/05/dear-wendy-topic-of-faculty-forum/?unapproved=229869&moderation-hash=e3d19ee4c74eb140251146bbbe16fc5b#comment-229869 http://www.holistichappinessblog.com/apple-cheddar-kale-salad/?unapproved=1652752&moderation-hash=137c9825a82c19bfc48c7452a60a02fa#comment-1652752 http://metr.by/object/2076496 https://www.html5videobank.com/community/showthread.php?tid=17656&pid=340345#pid340345 https://bromleyestatesmarbella.com/contact-us/?cf_er=_cf_process_60b7e586e1e84 http://www.holistichappinessblog.com/apple-cheddar-kale-salad/?unapproved=1652753&moderation-hash=0f9694c87d896bff76f47c9dd787f3b8#comment-1652753 https://q8mazad.com/vb/showthread.php?p=3283678&posted=1#post3283678 https://wondernotenvy.wordpress.com/author/67tyu876/?contact-form-id=354827&contact-form-sent=423512&contact-form-hash=29708163069e051c2cedf8af7b9d265502340782&_wpnonce=375662ee41 http://metr.by/object/2076492 http://metr.by/object/2076500 https://highschoolhouseparty.com/weckingball-push-up-contest/?unapproved=370928&moderation-hash=d82f0f557d7ad8a20fee8a8bf6d55908#comment-370928
    https://echokirova.ru/forum/messages/forum4/topic108299/message238316/?result=reply#message238316 http://thevms.net/index.php?topic=81306.new#new http://zk-balt.ru/viewtopic.php?f=1&t=6600 https://acdc.0xbt.net/index.php?topic=69693.new#new https://prisaoinvisivel.com.br/forum/viewtopic.php?f=17&t=998456 http://mohr-tranebjaerg.de/forum/showthread.php?tid=775795 https://ufarms.ru/viewtopic.php?f=3&t=4318 http://forumdesmonrp.geliland.com/showthread.php?tid=26895 http://trudixcrs.com/viewtopic.php?f=5&t=4035 http://zk-balt.ru/viewtopic.php?f=1&t=6605 http://www.inforbarget.fr/forum/viewtopic.php?f=20&t=36923 https://paybackking.com/forum/viewtopic.php?f=8&t=6774 https://jimhelton.com/viewtopic.php?f=2&t=173510 https://webboard.thaibaccarat.net/index.php?topic=331406.new#new http://forumseramik.com/viewtopic.php?f=10&t=4121 http://melevistas.com/viewtopic.php?f=4&t=1778955 http://cyberweb.pt/viewtopic.php?f=3&t=37148 https://www.radiopeep.com/forum/viewtopic.php?f=8&t=60&p=58052#p58052 https://paybackking.com/forum/viewtopic.php?f=8&t=6775 http://lamban.xyz/viewtopic.php?f=5&t=3678 https://sieuthimini.net/viewtopic.php?f=2&t=3283 http://www.reo14.moe.go.th/phpBB3/viewtopic.php?f=6&t=980262 https://enah.edu.mx/enahforos/viewtopic.php?f=5&t=1343458 https://www.rustlandgermany.de/viewtopic.php?f=7&t=18848 https://traveldiscussions.com/viewtopic.php?f=8&t=63803

Leave a Reply

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