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.

    zusllmdsg1fqryhd
    https://flashmag.tn/contact/?contact-form-id=20&contact-form-sent=179386&contact-form-hash=c348eb28802c8ed0086fe78833a28285c7557b7b&_wpnonce=789b439491
    https://vaporizerx.com/some-thoughts-on-vaping-and-snowboarding/?unapproved=67224&moderation-hash=20dd8100e0dcc0c9ecd79bbe56a55378#comment-67224
    https://www.corporateradiosucks.com/forum/showthread.php?72897-aqnlifyw&p=340895#post340895
    http://forum.weightlosslottery.com/thread-305817.html
    http://tenonbest.com/index.php?s=/Guestbook/index.html
    https://toptoursmongolia.com/kharakhorum-erdene-zuu-monastery/?unapproved=371714&moderation-hash=fbb82226689b75cc1b063d25109f6d7a#comment-371714
    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
    http://www.kolaservers.net/forums/showthread.php?tid=3567
    http://mummyfix.com/2017/02/10/natural-intimate-engagement-shoot/?unapproved=150449&moderation-hash=30dc90dd8829282944977ab72fcde278#comment-150449
    https://digierror.ir/index.php?/topic/3017-yfheozvf/
    http://test.windsorpie.com/forum.php?mod=viewthread&tid=690439&extra=
    http://82.165.122.32/index.php?topic=137200.new#new
    http://porthkerris.com/forum/viewtopic.php?f=7&t=50074
    http://nauc.info/forums/viewtopic.php?f=3&t=14306818
    http://nemcom.nu/forum/viewtopic.php?pid=849842#p849842
    http://zatoxgaming.org/forums/viewtopic.php?f=5&t=15674
    https://www.ranmac.asia/forum/showthread.php?tid=63041
    http://forums.fearnode.net/general-discussion/900427453/iyduepvd
    http://www.nsu-club.com/forum/viewtopic.php?f=10&t=1455749
    https://enisan.com.tr/forum/viewtopic.php?f=7&t=78309
    http://www.estudiandoenmadres.com.ar/foro/index.php?topic=50617.new#new
    http://forum.agopengps.com/viewtopic.php?f=2&t=101702
    http://dettochiaramente.it/forum/viewtopic.php?f=118&t=2091
    https://www.edgefanatics.com/forum/showthread.php?p=591047
    http://christmas.regenbogenwiese.net/index.php?guestbook-entry/4982545-%D0%B4%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B-%D0%BC%D1%83%D0%BB%D1%8C%D1%82%D1%84%D0%B8%D0%BB%D1%8C%D0%BC-%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/
    http://www.kolaservers.net/forums/showthread.php?tid=3185
    https://board.bmwcarmag.com/index.php?topic=439707.new#new
    https://www.sonmafya.com/forum/showthread.php?tid=82261
    http://forum.searchforlight.de/viewtopic.php?f=4&t=6441
    http://cb44al.com/forum.php?mod=viewthread&tid=21335&extra=
    http://xn--9rqw9pzsay9a679c.xn--kbto70f.com/forum.php?mod=viewthread&tid=73137&extra=
    http://gamingsiden.dk/viewtopic.php?f=7&t=111780
    http://qsjianzhi.com/forum.php?mod=viewthread&tid=298946&extra=
    https://www.proggnosis.com/Forum/topic4267—–.aspx?MessageID=4638
    http://patriotika.wezom.net/forum/viewtopic.php?pid=210612#p210612
    http://foromaestros.com/viewtopic.php?f=23&t=7477
    http://umsltan.com/vb/showthread.php?p=127189#post127189
    http://199cr.com/thread-409166-1-1.html
    https://www.lewistee.com/forum/viewtopic.php?f=10&t=41376
    http://monespace.adepul.fr/forum/showthread.php?tid=10861
    https://forums.cuahsi.org/viewtopic.php?f=3&t=168456
    http://www.koi-s.id/showthread.php?29196-%D0%94%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B-%D0%BC%D1%83%D0%BB%D1%8C%D1%82%D1%84%D0%B8%D0%BB%D1%8C%D0%BC-2019-%D0%BE%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD&p=530031#post530031
    http://scitechfitness.com/dir/viewtopic.php?f=4&t=149489
    http://nsu-club.com/forum/viewtopic.php?f=10&t=1450670
    https://www.8n8n.work/forum.php?mod=viewthread&tid=927557&extra=
    http://forum.onmakeeva.site/viewtopic.php?f=4&t=10137
    http://www.tsforum.net/1461-trabzon/49597-g-g-n-n-g-g-g-g-g-n-2019-n-g-g-n-n-gun-noe-g-hd-1080-g-g-g-g-g-g.html#post49952
    https://forum.iq-provision.ru/showthread.php?tid=60432
    http://www.psbstyle.mojkgb.com/fluxbb/viewtopic.php?pid=178730#p178730
    http://diomax.ru/forum/viewtopic.php?f=10&t=126266
    http://forum.ustageldi.com/showthread.php?p=9636#post9636
    http://www.rakuyori.com/viewtopic.php?p=249973#249973
    http://62.109.19.197/showthread.php?p=1076575#post1076575
    http://mbforum.pl/index.php?topic=12127.new#new
    https://www.ranmac.asia/forum/showthread.php?tid=59763
    https://forum.phyterya.com/showthread.php?tid=7477
    http://veganchallenge.it/forum/viewtopic.php?f=5&t=104198
    https://18c.se/showthread.php?tid=41175
    https://board.bmwcarmag.com/index.php?topic=439710.new#new
    https://254gamers.com/community/showthread.php?tid=66999
    http://wbiaohome.net/forum.php?mod=viewthread&tid=97101&extra=
    http://fifacup.pl/showthread.php?tid=7330&pid=19778#pid19778
    http://jingcanjiaoyu.com/thread-1732-1-1.html
    https://1yuz.xyz/showthread.php?43982-quot-%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-quot-%D0%A0%D2%91%D0%A0%C2%BB%D0%A1%D0%8F-%D0%A0%D1%92%D0%A0%D0%85%D0%A0%D2%91%D0%A1%D0%82%D0%A0%D1%95%D0%A0%D1%91%D0%A0%D2%91&p=46686#post46686
    http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=19239
    http://www.208408.com/forum.php?mod=viewthread&tid=182737&extra=
    http://demo-scripts.com/fluxbb/viewtopic.php?pid=20455#p20455
    http://www.shufenobelisk.site/forum.php?mod=viewthread&tid=24012&extra=
    http://www.estudiandoenmadres.com.ar/foro/index.php?topic=48360.new#new
    http://board.skypex.ro/viewtopic.php?f=14&t=255393
    http://beoterra.net/viewtopic.php?f=19&t=12264
    http://cryptonews.keyforum.ru/viewtopic.php?f=28&t=151759
    http://board.cxejohns.com/viewtopic.php?pid=502468#p502468
    http://45.32.21.158/forum.php?mod=viewthread&tid=34372&extra=
    http://forum.sailorstation.com/bb/viewtopic.php?f=20&t=434856
    http://49wd.com/forum.php?mod=viewthread&tid=50374&extra=
    https://msk.uvm-steel.ru/forum/messages/forum1/topic1/message1466/?result=reply#message1466
    http://sqzhcp.top/forum.php?mod=viewthread&tid=2589396&extra=
    http://firepower.teamforum.ru/viewtopic.php?f=24&t=203744&p=226454#p226454
    http://eisenbahn-weltweit.de/viewtopic.php?f=18&t=63564
    http://49.231.238.163/board/viewtopic.php?f=3&t=1475683
    http://dd.muquyennang.vn/showthread.php?35295-%D0%A0%D1%92%D0%A0%D0%85%D0%A0%D1%91%D0%A0%D1%98%D0%A0%C2%B5-%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&p=53364#post53364
    http://www.israelru.botvinik.net/forum/viewtopic.php?f=19&t=3213
    http://techteach.ir/forum/showthread.php?tid=33384
    http://forum.realtor-room.ru/showthread.php?tid=10819
    http://alansab.net/forum/showthread.php?p=119192#post119192
    https://forum.iq-provision.ru/showthread.php?tid=60434
    https://www.hc0412.com/forum.php?mod=viewthread&tid=27768&extra=
    https://btc357.com/forum/viewtopic.php?pid=177854#p177854
    https://iranrgt.com/index.php/topic,153589.new.html#new
    http://diafan.dlay.ru/eng/forum/azdmnzbzxd47084/
    http://hardx.org/forum/viewtopic.php?f=4&t=279664
    https://e-carabin.anemf.org/viewtopic.php?f=23&t=38249
    http://82.165.122.32/index.php?topic=126719.new#new
    https://18c.se/showthread.php?tid=41178
    https://on-lineclimat.ru/forum/messages/forum1/topic99/message17398/?result=reply#message17398
    https://18c.se/showthread.php?tid=41179

Leave a Reply

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