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.

    mvywvmdsg1fqhfql
    https://vaporizerx.com/some-thoughts-on-vaping-and-snowboarding/?unapproved=67235&moderation-hash=1eea26bee07fa0fab76276dc914a652e#comment-67235
    https://highschoolhouseparty.com/weckingball-push-up-contest/?unapproved=62324&moderation-hash=794b03a5e142924a6c5baf0f30322eca#comment-62324
    http://forum.finddex.com/showthread.php?tid=787126
    https://toptoursmongolia.com/kharakhorum-erdene-zuu-monastery/?unapproved=371732&moderation-hash=d9d078decfb3d30613e6fdeebdbe3646#comment-371732
    https://www.sql-server-performance.com/w2k-filesystem-affects-performance/?unapproved=112927&moderation-hash=0ea2e3e8adfa64a4b0321a4e17fa7043#comment-112927
    http://proboothtalk.com/directory/?unapproved=254428&moderation-hash=ac37ecf7c03bbb32afb4a7a29ddc2080#comment-254428
    https://www.corporateradiosucks.com/forum/showthread.php?72903-gakzxruw&p=340934#post340934
    https://itells.ru/viewtopic.php?pid=11010#p11010
    http://myforum.ums.co.ug/viewtopic.php?f=3&t=516193
    http://foropeloturquia.com/viewtopic.php?f=6&t=56307
    https://moisesproject.com/lorem-ipsum/?unapproved=5972&moderation-hash=ea7e27c1965ac6e3805857adbc2900b0#comment-5972
    https://serd.ait.ac.th/serd/?unapproved=480373&moderation-hash=172cb421ecb630812fcde028dc493543#comment-480373
    http://ashayer.org/node/71907#comment-90600
    https://www.actioncams.com.br/forum/showthread.php?tid=307593
    https://loswege.com/przepisy/kryzysowe-chili/?unapproved=35066&moderation-hash=458a00eb55a0ea3c1d4025e58dd33aa6#comment-35066
    http://labor-economics.org/forum/viewtopic.php?f=5&t=1374078
    http://blog.paysubsonline.com/membership-management-importance-creating-content/?unapproved=310811&moderation-hash=b4d56466ad3c7277069fe13e9deaef40#comment-310811
    http://printconverting.com/it/node/224173
    http://filmiskane.nu/?page_id=2&unapproved=1396683&moderation-hash=e507716499590d612f452060a2899197#comment-1396683
    http://uhuori.org/2020/08/10/computer-training-at-royal-lounge/?unapproved=849927&moderation-hash=71cc9e1005f738132c4ce4912a4610b7#comment-849927
    https://letstalktrucking.com/semi-truck-accident-videos/?unapproved=147466&moderation-hash=09e39cb23972a8c9df880a5b507cfee0#comment-147466
    http://rohstudio.dk/katie-scott/?unapproved=77686&moderation-hash=5d72d5c3a6381fa4c3855a85a1a813b6#comment-77686
    https://btc-f.org/forum/viewtopic.php?pid=149785#p149785
    http://www.onpflegeforum.de/post/2541243/#p2541243
    http://diplomukr.com.ua/raboti/111027?new
    https://forum.mukhronus.com/thread-636358.html
    http://49.231.238.163/board/viewtopic.php?f=3&t=1475647
    http://forum.phakp.com/showthread.php?tid=14115&pid=24560#pid24560
    https://www.rubinum.mojkgb.com/forums/viewtopic.php?pid=13928#p13928
    http://xn--c1akfd5azeb.xn--p1ai/forum/viewtopic.php?f=23&t=956979
    http://test.windsorpie.com/forum.php?mod=viewthread&tid=687060&extra=
    http://leeightontalksaboutpokemon.net/forums/showthread.php?54728-%D0%A0%E2%80%9D%D0%A0%D1%91%D0%A1%E2%80%9A%D0%A1%D0%8F-%D0%A0%D1%97%D0%A0%D1%95%D0%A0%D1%96%D0%A0%D1%95%D0%A0%D2%91%D0%A1%E2%80%B9-%D0%A0%D1%98%D0%A1%D1%93%D0%A0%C2%BB%D0%A1%D0%8A%D0%A1%E2%80%9A%D0%A1%E2%80%9E%D0%A0%D1%91%D0%A0%C2%BB%D0%A1%D0%8A%D0%A0%D1%98-2019-1080&p=122182#post122182
    https://ternate.karantina.pertanian.go.id/forum/viewtopic.php?pid=412131#p412131
    http://manner.gain.tw/viewthread.php?tid=1730122&extra=
    http://www.cs.wdazone.ro/viewtopic.php?f=196&t=4488453
    https://forum.l2.wf/viewtopic.php?f=5&t=116423
    https://www.ranmac.asia/forum/showthread.php?tid=59726
    https://adminclub.org/Thread-%D0%9C%D1%83%D0%BB%D1%8C%D1%82%D1%84%D0%B8%D0%BB%D1%8C%D0%BC-%D0%94%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B-2020-HD-%E2%80%94-%D1%81%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C-%D0%B2-%D1%85%D0%BE%D1%80%D0%BE%D1%88%D0%B5%D0%BC-%D0%BA%D0%B0%D1%87%D0%B5%D1%81%D1%82%D0%B2%D0%B5–36306
    https://prisaoinvisivel.com.br/forum/viewtopic.php?f=17&t=238242
    http://www.biocch.net/forum/showthread.php?tid=38259
    http://www.kolaservers.net/forums/showthread.php?tid=3174
    https://moto-otzovik.ru/viewtopic.php?f=4&t=77965
    https://forum.tenno-inside.com/showthread.php?tid=96117
    https://higginsgaming.com/viewtopic.php?f=8&t=188501
    http://skyscrapercity.me/showthread.php?p=625755#post625755
    https://board.bmwcarmag.com/index.php?topic=439598.new#new
    http://alansab.net/forum/showthread.php?p=119166#post119166
    https://russianmagia.com/viewtopic.php?f=5&t=104247
    http://gamingsiden.dk/viewtopic.php?f=7&t=111759
    https://proverenyemagi.ru/showthread.php?p=22250
    https://dashcams.com.br/forum/showthread.php?tid=35609&pid=48096#pid48096
    http://cb44al.com/forum.php?mod=viewthread&tid=21303&extra=
    http://xn--9rqw9pzsay9a679c.xn--kbto70f.com/forum.php?mod=viewthread&tid=73107&extra=
    http://zltgo.com/forum.php?mod=viewthread&tid=23665&extra=
    http://christmas.regenbogenwiese.net/index.php?guestbook-entry/4982183-%D1%84%D0%B8%D0%BB%D1%8C%D0%BC-%D0%B4%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B-%D1%81%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C/
    http://patriotika.wezom.net/forum/viewtopic.php?pid=210534#p210534
    http://www.onpflegeforum.de/post/2529298/#p2529298
    https://sexy-x-rated.us/showthread.php?tid=41542
    http://voxsomnia.com/forums/viewtopic.php?f=2&t=879291
    http://forum.onmakeeva.site/viewtopic.php?f=4&t=10115
    http://monespace.adepul.fr/forum/showthread.php?tid=10850
    http://www.psbstyle.mojkgb.com/fluxbb/viewtopic.php?pid=178648#p178648
    https://www.lewistee.com/forum/viewtopic.php?f=10&t=41344
    http://thienlam.org/forum/viewtopic.php?f=19&t=109965
    https://www.proggnosis.com/Forum/topic4260——.aspx?MessageID=4631
    http://forum-eternal.com/forum.php?mod=viewthread&tid=131688&extra=
    https://www.edgefanatics.com/forum/showthread.php?p=590939
    http://62.109.19.197/showthread.php?p=1076555#post1076555
    http://nsu-club.com/forum/viewtopic.php?f=10&t=1450623
    http://199cr.com/thread-409109-1-1.html
    https://18c.se/showthread.php?tid=41132
    http://forum.ustageldi.com/showthread.php?p=9617#post9617
    http://fifacup.pl/showthread.php?tid=7325&pid=19766#pid19766
    https://forums.cuahsi.org/viewtopic.php?f=3&t=168377
    http://www.poultry.space/viewtopic.php?pid=386195#p386195
    http://umsltan.com/vb/showthread.php?p=127162#post127162
    http://www.koi-s.id/showthread.php?29187-%D0%94%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B-2019-%D1%81%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C-%D0%BE%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD-%D1%84%D0%B8%D0%BB%D1%8C%D0%BC&p=530007#post530007
    https://254gamers.com/community/showthread.php?tid=66966
    http://board.cxejohns.com/viewtopic.php?pid=502277#p502277
    http://blueforum.net/viewtopic.php?f=15&t=86286
    https://forum.iq-provision.ru/showthread.php?tid=60355
    http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=19230
    https://www.fbnewspost.com/index.php/topic,109324.new.html#new
    https://foro.mundohost.es/viewtopic.php?f=6&t=26287
    http://scitechfitness.com/dir/viewtopic.php?f=4&t=149407
    http://firepower.teamforum.ru/viewtopic.php?f=24&t=203744&p=226448#p226448
    http://cryptonews.keyforum.ru/viewtopic.php?f=28&t=151752
    https://www.8n8n.work/forum.php?mod=viewthread&tid=927330&extra=
    http://qsjianzhi.com/forum.php?mod=viewthread&tid=298877&extra=
    http://www.ambervibe.com/forum/viewtopic.php?f=6&t=267121
    https://iranrgt.com/index.php/topic,153545.new.html#new
    http://www.estudiandoenmadres.com.ar/foro/index.php?topic=48323.new#new
    http://www.shufenobelisk.site/forum.php?mod=viewthread&tid=24007&extra=
    http://forum.sailorstation.com/bb/viewtopic.php?f=20&t=434770
    http://www.niubi.gg/forum.php?mod=viewthread&tid=4782310&extra=
    https://cornlan.co.uk/forum/viewtopic.php?f=22&t=940153
    http://www.israelru.botvinik.net/forum/viewtopic.php?f=19&t=3200
    http://45.32.21.158/forum.php?mod=viewthread&tid=34354&extra=
    http://mbforum.pl/index.php?topic=12114.new#new
    https://plecodiscus.com/viewtopic.php?f=8&t=245037

Leave a Reply

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