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.

    mbaxgcjkzk http://davinsons.com/minimum-wage-implementationll-be-discussed-after-bill-passage/#comment-15137
    http://forumdewa88.com/showthread.php?tid=18666&pid=55202#pid55202
    https://www.dailymedicaldiscoveries.com/the-one-thing-not-to-add-to-your-mcdonalds-burger/#comment-63207
    http://um.chin-shan.com/viewthread.php?tid=3165275&extra=
    http://forum.sthmahmpthm.ac.id/viewtopic.php?pid=964878#p964878
    http://forum.jjrc-tech.com/forum.php?mod=viewthread&tid=109220&extra=
    https://maloneyandkennedy.com/jessica-wiley-earns-abv-credentials/?unapproved=5515&moderation-hash=3dc30069c0eaaa8eef2da691d42933a9#comment-5515
    https://etlovers.com/forum/showthread.php?tid=1007577
    https://chinaebikes.uk/thread-165165-post-380054.html#pid380054
    http://myfreeprescription.com/rx/showthread.php?tid=2237
    http://ns2.awmn.net/album.php?albumid=554472
    http://my.jurnalotaku.com/contact-us/?contact-form-id=2755&contact-form-sent=142658&_wpnonce=16e23c6e6a
    http://www.longmenkz.cn/forum.php?mod=viewthread&tid=18561&extra=
    http://littlebikers.messageboard.nl/forum/viewtopic.php?f=2&t=496878
    http://new.redruef.org/forums/topic/njm-%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%82%d1%80%d0%be%d0%bb%d0%bb%d0%b8-%d0%bc%d0%b8%d1%80%d0%be%d0%b2%d0%be%d0%b9-%d1%82%d1%83%d1%80-2020/
    http://manevialem.com/thread-280757.html
    http://oneticks.site/index.php?threads/mpl-%D0%9C%D1%83%D0%BB%D1%8C%D1%82%D0%B8%D0%BA-%D0%A2%D1%80%D0%BE%D0%BB%D0%BB%D0%B8.35841/
    http://niezniszczalnestawy.pl/zel-na-stawy-levasan-cena-sklad-opinie-z-forum/?unapproved=25713&moderation-hash=6e4a8c30fecc86cfdb27f6d08041e216#comment-25713
    http://forum.stellarark.net/viewtopic.php?f=4&t=323531
    http://megyaszoiskola.hu/forum/2-belepo-kapu/7370440-fqp-trolli-mirovoj-tur-multfilm#7370440
    http://mskaforum.ru/showthread.php?p=294114#post294114
    http://megamixx.me/modules.php?name=Forums&file=viewtopic&p=142491#142491
    http://okanozkan.info/metal-platform-bed-with-headboard/?unapproved=2350&moderation-hash=d24da0597ff1e873aa7106019b4965ba#comment-2350
    https://miklja.net/?unapproved=112481&moderation-hash=8c4fc2d867192aa610187ed17ae1ce19#comment-112481
    http://opel-help.ru/showthread.php?t=205376&p=296832#post296832
    https://pozyskajdotacje.pl/hello-world/?unapproved=162234&moderation-hash=9482cf3b5ae7f17c119ac1829abae948#comment-162234
    https://www.minexcointalk.com/how-to-earn-money-with-social-media/?unapproved=24117&moderation-hash=450e4b9ea6d91e8a9173e1cfe586e89f#comment-24117
    http://www.postertracks.com/index.php/contacts/?unapproved=31656&moderation-hash=f6e5aff376f2af3231697d6321f719ee#comment-31656
    https://moneyanddeals.com/viewtopic.php?f=2&t=29782
    https://nulledwarez.org/download-nulled-freelance-dashboard-v2-0-project-management-crm-software/?unapproved=126578&moderation-hash=bbe87ec014718850063d5f92452012d6#comment-126578
    https://www.onenightyourchoice.com/2019/03/18/hello-world/?unapproved=503169&moderation-hash=2cdc499ee87210f0205691d1c6e4202d#comment-503169
    http://redcaffe.ru/showthread.php?p=379613#post379613
    http://q8mazad.com/vb/showthread.php?p=1091874#post1091874
    https://linkindians.com/topic/214276-cay-%D1%82%D1%80%D0%BE%D0%BB%D0%BB%D0%B8-%D0%BC%D0%B8%D1%80%D0%BE%D0%B2%D0%BE%D0%B9-%D1%82%D1%83%D1%80-2020/
    http://gdoha.com/showthread.php?p=507164#post507164
    http://onestopcampingsupplies.com/2016/02/29/raqpak-microfiber-towel-for-travel-gym-camping-small-and-compact-antibacterial-and-quick-dry-with-small-carry-pouch-blue-40-x-20-inches/?unapproved=164924&moderation-hash=9e572e0da38a1e4a5f5e3eec576aff12#comment-164924
    http://gille-vigneault.forum-prive.com/viewtopic.php?pid=16181#p16181
    http://ru.evbud.com/projects/1223775/
    https://revolutiondm.mojkgb.com/index.php?topic=160490.new#new
    http://siliconvalleytalk.xyz/blogs/viewstory/12478
    https://panteio.gr/showthread.php/33053-ISL-%CE%A0%E2%80%99%CE%A1%C2%80%CE%A0%CE%8E%CE%A0%C2%BB%CE%A0%C2%BB%CE%A0%CE%88.-%CE%A0%C2%9C%CE%A0%CE%88%CE%A1%C2%80%CE%A0%CE%8E%CE%A0%C2%B2%CE%A0%CE%8E%CE%A0%CE%89-%CE%A1%C2%82%CE%A1%C2%83%CE%A1%C2%80.-World-%CE%A1%C2%84%CE%A0%CE%88%CE%A0%C2%BB%CE%A1%C2%8C%CE%A0%CE%8C-%CE%A0%E2%80%98%CE%A0%CE%8C%CE%A0%CE%8E%CE%A1%C2%82%CE%A1%C2%80%CE%A0%CE%85%CE%A1%C2%82%CE%A1%C2%8C?p=55596#post55596
    https://shipdonkey.com/forums/topic/jdn-%d0%bc%d1%83%d0%bb%d1%8c%d1%82%d0%b8%d0%ba-%d1%82%d1%80%d0%be%d0%bb%d0%bb%d0%b8/
    http://naturalbodybuilding.ru/ru/node/13409#comment-11542
    http://rainforestawarenessworldwide.org/?unapproved=1157375&moderation-hash=92264161ecf31be0fa472989b2693a19#comment-1157375
    https://www.shahyan.com/index.php/2020/01/25/hello-world/?unapproved=7554&moderation-hash=c7481ab349460f316e8b4737766c7369#comment-7554
    https://r00tv.org/forum/showthread.php?tid=41188
    http://ngoinhachung.net/diendan/baiviet/ubr-2-2020–2660054-1-1.html
    http://quejasyabusosdelacaixa.com/index.php?topic=38054.new#new
    http://shams-academy.ir/%d8%b6%d8%b1%d8%b1-%d9%87%d8%a7%db%8c-%d8%a7%d8%b1%d8%aa%d9%88%d8%af%d9%86%d8%b3%db%8c/?unapproved=43797&moderation-hash=f57497897e4e82fec6e3cbca361a992b#comment-43797
    http://sudanson.com/vb/showthread.php?367001-Jpa-%AB%D2%F0%EE%EB%EB%E8-2%BB&p=1221336#post1221336
    http://spucknapf.net/showthread.php?p=676912#post676912
    http://forum.pakerp.com/viewtopic.php?f=3&t=106572
    http://streeti.ir/forum/showthread.php?tid=45168
    https://sitesazz.ir/blog/training/add-a-general-admin-user-without-access?unapproved=119519&moderation-hash=7a621cd205178aaeffecdf043b626317
    http://primalguild.org/forum/showthread.php?tid=42976
    http://qqshouzhuan.com/forum.php?mod=viewthread&tid=46221&extra=
    https://one-on-one.ru/post/1261?page=285#comment-14364
    https://telefon.1crm.ru/blog/index.php?WEB_FORM_ID=45&RESULT_ID=32142&formresult=addok
    http://test.footballsupps.com/viewtopic.php?f=3&t=34962
    http://t3sla.ch/viewtopic.php?f=29&t=36167
    http://singharoyfamily.net/PunBB/viewtopic.php?pid=886315#p886315
    http://webice.xost.ru/forum/index.php?fid=1&id=15836550438436
    http://rubanmag.com/%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1%D8%A7%D9%86/%D9%85%D9%82%D8%A7%D9%84%D9%87/januvia-100mg-buy-topical-s5?page=32#comment-186886
    http://polishcrackers.eu/showthread.php?tid=98595
    http://total-ruckus.com/viewtopic.php?f=11&t=71902
    http://vidampercek.hu/2019/09/18/hello-vilag/?unapproved=151899&moderation-hash=8873e3aeac565ddfcefb01180097a6c0#comment-151899
    http://nemcom.nu/forum/viewtopic.php?pid=61661#p61661
    http://vollautomatisch.de/forum/showthread.php?p=174039#post174039
    http://primetimepromotions.ca/forum/viewtopic.php?p=247281#247281
    http://shiqi.biz/bbs/forum.php?mod=viewthread&tid=252914&extra=
    https://seetube.co/beneficial-methods-to-help-you-deal-with-panic-and-anxiety-attacks/?unapproved=115420&moderation-hash=fcd7c25a15574939c76230e7af052e0e#comment-115420
    http://www.trocdelavape.com/thread-176197.html
    https://tgmetr.ru/topic/54000-vxa-%C2%ABtrolli-2%C2%BB/
    http://std-dating-sites.com/viewtopic.php?f=4&t=65368
    http://www.side4all.de/forum/showthread.php?tid=53732

Leave a Reply

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