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.

    menysmdsg1fqyikv
    http://share.digitalmax.jp/bbs/viewtopic.php?f=6&t=5745205
    http://admin.infinix.club/forum.php?mod=viewthread&tid=3924320&extra=
    https://kqra.com/showthread.php?tid=85&pid=55844#pid55844
    http://admin.infinix.club/forum.php?mod=viewthread&tid=3924323&extra=
    http://forum.weightlosslottery.com/thread-305037.html
    http://barnbarista.com/chat/viewtopic.php?f=7&t=162485
    http://jollygreengiant.balunsat.org/01/gen/gen/index.php/forum/records/974862-uoffmoaj#975804
    http://mail.go141.net/forum.php?mod=viewthread&tid=83854&extra=
    http://nemcom.nu/forum/viewtopic.php?pid=845673#p845673
    http://www.passion-beagle.fr/forum-beagle/jlgztrms-t11008.html
    http://admin.infinix.club/forum.php?mod=viewthread&tid=3924324&extra=
    http://priuti.ru/forum/index.php?topic=222954&page=588
    http://maroliver.com/en/452f-iv/?unapproved=42263&moderation-hash=7cc36671856174678dbd4072462af190#comment-42263
    http://www.lightitecture.com/index.php/Forum/Model-Lighting/705843-ReFive-Paragraph-Essay-Ideas.html#705843
    http://articool.ru/node/4#comment-70509
    http://www.powderday.ru/forum/viewtopic.php?f=5&t=286338
    http://khalidalshaikh-fans.com/forum/showthread.php?p=1190923#post1190923
    http://mrssodhi.com/discussions/showthread.php?tid=150287
    http://forumc.fearnode.net/general-discussion/900396445/hjujhapk
    http://www.lightitecture.com/index.php/Forum/Model-Lighting/705842-ReFive-Paragraph-Essay-Ideas.html#705842
    https://grafika-konackasarah.webnode.cz/ostatni/forum/
    http://www.masryn.com/vb/showthread.php?p=3337800#post3337800
    http://nemcom.nu/forum/viewtopic.php?pid=845679#p845679
    http://www.spspaintball.de/?p=453&unapproved=90806&moderation-hash=23c641b2ed4f681ebecf5957f5c561e6#comment-90806
    http://nauc.info/forums/viewtopic.php?f=3&t=14305171
    http://fifacup.pl/showthread.php?tid=7021
    http://forum.matindvd.ir/viewtopic.php?pid=41493#p41493
    https://forum.fensgame.com/showthread.php?tid=114795
    http://forexzloty.pl/showthread.php?15956-%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-%D0%A0%D2%91%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-(2020-hd)-%D0%B2%D0%82%E2%80%9D-%D0%A1%D0%83%D0%A0%D1%98%D0%A0%D1%95%D0%A1%E2%80%9A%D0%A1%D0%82%D0%A0%C2%B5%D0%A1%E2%80%9A%D0%A1%D0%8A-%D0%A0%D0%86-%D0%A1%E2%80%A6%D0%A0%D1%95%D0%A1%D0%82%D0%A0%D1%95%D0%A1%E2%82%AC%D0%A0%C2%B5%D0%A0%D1%98-%D0%A0%D1%94%D0%A0%C2%B0%D0%A1%E2%80%A1%D0%A0%C2%B5%D0%A1%D0%83%D0%A1%E2%80%9A%D0%A0%D0%86%D0%A0%C2%B5&p=36096#post36096
    http://www.bec-dnepr.com/forum/viewtopic.php?f=2&t=187038
    http://forum.matindvd.ir/viewtopic.php?pid=41494#p41494
    http://concerns.sportshouse.com.ph/showthread.php?tid=51665&pid=681145#pid681145
    http://bbs.accuk.org/forum.php?mod=viewthread&tid=503129&extra=
    https://capbiz.su/index.php?/topic/326105-ditia-pogody-smotret-v-khoroshem-kachestve/
    http://footgolffactory.com/viewtopic.php?f=2&t=7732
    https://www.forotrabant.com/showthread.php?tid=16782&pid=34060#pid34060
    http://desert-to-forest.tomasoso.de/forum/showthread.php?tid=21399
    http://dk-rsps.com/community/showthread.php?tid=2741
    https://forum.phyterya.com/showthread.php?tid=7189&pid=7304#pid7304
    https://brodzio.pl/forum/showthread.php?tid=28972
    http://cb44al.com/forum.php?mod=viewthread&tid=20433&extra=
    http://brundavandentalclinic.com/index.php/forum/2-welcome-mat/285970——–#285970
    http://footgolffactory.com/viewtopic.php?f=2&t=7733
    http://foro-covid19.com/showthread.php?tid=122408
    https://darkons.ru/forum/messages/forum6/topic20687/message59174/?result=reply#message59174
    http://highhopeshuntclub.com/viewtopic.php?f=1&t=929653
    https://forum.tenno-inside.com/showthread.php?tid=94056
    https://forum.controllino.biz/viewtopic.php?f=2&t=4467
    https://forum.l2.wf/viewtopic.php?f=5&t=115475
    https://forum.elementrp.ru/index.php?/topic/13280-%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-%D0%BE%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD/
    https://forum.mukhronus.com/thread-633049.html
    http://sqzhcp.top/forum.php?mod=viewthread&tid=2534982&extra=
    http://falforum.org/viewtopic.php?f=4&t=30439
    http://concerns.sportshouse.com.ph/showthread.php?tid=51684&pid=681149#pid681149
    https://dashcams.com.br/forum/showthread.php?tid=35609&pid=47443#pid47443
    http://wanghao88520.com/forum.php?mod=viewthread&tid=42189&extra=
    http://bbs.fangmazhou.com/forum.php?mod=viewthread&tid=22003&extra=
    http://fhcso.us/viewtopic.php?f=2&t=99643
    http://foromaestros.com/viewtopic.php?f=23&t=7138
    https://hackz.com.br/showthread.php?tid=60518&pid=258441#pid258441
    http://forum.gastro-gepa.ru/viewtopic.php?f=5&t=46358
    http://49.231.238.163/board/viewtopic.php?f=3&t=1474790
    https://footforthought.boardhost.com/viewtopic.php?pid=36085#p36085
    http://forum.engesoftbi.com.br/showthread.php?tid=51334
    http://forum.realtor-room.ru/showthread.php?tid=10552&pid=33339#pid33339
    https://forum.picknstake.com/viewtopic.php?f=15&t=36098&p=120614#p120614
    https://forum.iq-provision.ru/showthread.php?tid=58435
    http://expandablebanners.com/forum/viewtopic.php?f=6&t=543852
    https://higginsgaming.com/viewtopic.php?f=8&t=186654
    https://dubaiescorts24forum.com/viewtopic.php?f=5&t=13112
    https://dubaiescorts24forum.com/viewtopic.php?f=5&t=13113
    http://chungchitinhoc.net/showthread.php?tid=4493&pid=6316#pid6316
    http://163.32.94.234/artcms/forum/viewtopic.php?pid=980605#p980605
    http://163.32.94.234/artcms/forum/viewtopic.php?pid=980612#p980612
    http://163.32.94.234/artcms/forum/viewtopic.php?pid=980611#p980611
    http://forum.webdiplomacy.it/viewtopic.php?f=67&t=319737
    http://forum.ornisoft.com/viewtopic.php?f=4&t=400316
    https://cobva.com/beachpartnerpage/showthread.php?tid=164650
    http://forum.l2-aquarius.ru/index.php?/topic/177084-%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-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-%D0%B0%D0%BD%D0%B8%D0%BC%D0%B5/
    https://coinping.co/btc/viewtopic.php?pid=155766#p155766
    http://atheistsecularhumanist.org/agora/viewtopic.php?f=2&t=116852
    http://www.mcempire.net/forum/viewtopic.php?f=13&t=129846
    https://modelcarsforum.com/showthread.php?tid=92419
    http://forum.ornisoft.com/viewtopic.php?f=4&t=379832&p=435045#p435045
    https://www.forotrabant.com/showthread.php?tid=16784
    http://dentamind.com/clients/android/showthread.php?tid=774863
    https://forum.iq-provision.ru/showthread.php?tid=58434
    http://zhangfengya.cn/forum.php?mod=viewthread&tid=1199809&extra=
    http://www.proyectoarg.com.ar/viewtopic.php?f=2&t=7446&p=98740#p98740
    http://www.motosacz.pl/forum/viewtopic.php?f=19&t=118763
    http://fargoal.com/forums/viewtopic.php?f=3&t=442773
    http://kqra.com/showthread.php?tid=6685
    https://kqra.com/showthread.php?tid=409&pid=36993#pid36993
    http://kqra.com/showthread.php?tid=6686
    https://forum.streamclix.com/punbb/viewtopic.php?pid=27231#p27231
    https://ladbrokes88.info/forum/viewtopic.php?pid=11176#p11176
    https://forum.tenno-inside.com/showthread.php?tid=94061
    https://kqra.com/showthread.php?tid=6688
    http://hubforum.club/showthread.php?tid=22652
    https://forum.alltexno.ru/index.php?/topic/85139-%D0%BC%D1%83%D0%BB%D1%8C%D1%82%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-%D0%BE%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD-%D0%B2-%D1%85%D0%BE%D1%80%D0%BE%D1%88%D0%B5%D0%BC-hd-1080-%D0%BA%D0%B0%D1%87%D0%B5%D1%81%D1%82%D0%B2%D0%B5/

Leave a Reply

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