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.

    jjbinggtmzlwncbttw
    https://dankgaminginc.com/showthread.php?tid=94145&pid=711206#pid711206 http://cryptonews.keyforum.ru/viewtopic.php?f=28&t=97357 http://xn--90aeeaawgguajpihbvhv8l5a.xn--p1ai/forum/viewtopic.php?p=988206&sid=223d76edf2e93e814a69e6ef3bc8f008#988206 https://www.successdigestforum.com/viewtopic.php?f=10&t=37954&p=80341#p80341 http://fin.chat/viewtopic.php?f=2&t=854&p=22407#p22407 http://fotografhaberleri.net/forum/showthread.php?tid=182969 https://thedeadpixelssociety.com/contact/?contact-form-id=19&contact-form-sent=60361&contact-form-hash=b7d62da49b4f0dadcffa770ce4496e5c461ed828&_wpnonce=7300406aab http://kisi.com.ua/biznes-finansy/97133-nasledie-2-sezon-15-seriya-serial-2020-12-03-20-watch.html#post253814 http://panzercentral.com/forum/viewtopic.php?f=1&t=203238 http://littlebikers.messageboard.nl/forum/viewtopic.php?f=2&t=534957 http://lekecik.com/showthread.php?p=381687#post381687 http://marimama.ru/forum/69-21239-557#851999 http://403boxbreakers.com/phpbb/viewtopic.php?f=4&t=6316 https://raredesi.com/showthread.php?tid=45299 http://dele.info/viewtopic.php?f=3&t=342387 http://casteele.net/area51/sect07/zone01/viewtopic.php?f=6&t=192314 https://forum.mafia2-online.com/Thread-%C2%AB%D0%9C%D0%B0%D0%BD%D0%B8%D1%84%D0%B5%D1%81%D1%82-2-%D1%81%D0%B5%D0%B7%D0%BE%D0%BD-6-%D1%81%D0%B5%D1%80%D0%B8%D1%8F-%C2%BB-%D1%81%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C-%D1%81%D0%B5%D1%80%D0%B8%D0%B0%D0%BB-%EA%84%81-%D0%BC%D0%B0%D1%80%D1%82%D0%B0-2020-%E3%8F%83-seriyal http://selfsufficienthub.com/forum/viewtopic.php?f=4&t=4822 http://startrek.lunaticslanding.com/phpBB3/viewtopic.php?f=7&t=2144 http://fastfoodfanatics.com/showthread.php?tid=22268&pid=942391#pid942391 http://www.unraveled.net/phpbb/viewtopic.php?f=6&t=224004 http://eclet.ru/forum/messages/forum1/topic3/message84081/?result=reply#message84081 http://casteele.net/area51/sect07/zone01/viewtopic.php?f=6&t=192472 https://www.foro.escarabajario.com/showthread.php?tid=15075 http://fammiicompiti.altervista.org/forum/viewtopic.php?f=20&t=40579 http://forum.mechwarrior.ru/viewtopic.php?f=1&t=554407 http://myweightlosscafe.com/forum/viewtopic.php?f=5&t=165835 http://overcomestrugles.space/viewtopic.php?f=16&t=463372 http://www.conquestfororion.com/showthread.php?tid=26514 https://tgmetr.ru/topic/59636-chudotvorcy-2-sezon-4-seriya-vse-serii-%E2%96%A8-12-03-20-%E3%89%BA-sezon/ http://www.unraveled.net/phpbb/viewtopic.php?f=6&t=221492 https://www.fpjd-ihsani.org/forum/index.php?topic=139552.new#new http://golden-escape.cstrikes.ru/forum/viewtopic.php?pid=129839#p129839 https://www.structuralfea.com/forums/showthread.php?tid=27958 http://enjoylife.hk/viewtopic.php?f=2&t=201525 http://www.mytravel.lk/viewtopic.php?f=4&t=244463 http://cryptonews.keyforum.ru/viewtopic.php?f=28&t=95970 http://hasanaty.com/viewtopic.php?f=2&t=57858 http://thedarkspade.com/viewtopic.php?f=10&t=123031 https://hqrfeedback.com/viewtopic.php?f=7&t=30893 http://schluessel-herrin.com/forum/showthread.php?p=175413#post175413 https://forum.paktechnicians.com/viewtopic.php?f=13&t=66954 http://coolstf.com/forum/viewtopic.php?f=2&t=1203864&sid=33ef4ce4a966f181bcb3914bc0e95d60 https://forum.demodyne.org/showthread.php?tid=819026 http://dentamind.com/clients/android/showthread.php?tid=250681 http://babydecorideas.club/showthread.php?tid=3566&pid=320860#pid320860 http://kisi.com.ua/biznes-finansy/98980-supergyorl-5-sezon-16-seriya-smotret-serial-12-03-2020-smotret.html#post257935 http://opel-help.ru/showthread.php?t=217535&p=308996#post308996 https://r00tv.org/forum/showthread.php?tid=51711 http://coolstf.com/forum/viewtopic.php?f=2&t=1232552&sid=c3c9f48b32c920fc0a6bd7c429b3361a http://www.clearipcc.xyz/viewtopic.php?f=2&t=100783 http://ugscene.kapsi.fi/viewtopic.php?f=15&t=503330 http://streeti.ir/forum/showthread.php?tid=62201 http://lekecik.com/showthread.php?p=388230#post388230 http://grandflagcompany.com/viewtopic.php?f=5&t=1141101 http://www.wse-scylla.at/cms/index.php?option=com_joomlaboard&Itemid=55&func=view&catid=10&id=171294 http://fastfoodfanatics.com/showthread.php?tid=241346&pid=938197#pid938197 https://cxlwethepeople.com/forum/showthread.php?tid=887798 https://www.ucon-gaming.org/about-u-con/contact-us/?contact-form-id=48&contact-form-sent=18706&contact-form-hash=c304a876cb7e56582bc30c6839764018786f438a&_wpnonce=5b6a809a97 http://forum.mechwarrior.ru/viewtopic.php?f=1&t=555777 http://142.93.169.41/showthread.php?tid=7791 http://www.ultraszilina.sk/oz-zf/414-nove-veci-vo-fanshope/?cp=5603#comment-810989 http://golden-escape.cstrikes.ru/forum/viewtopic.php?pid=136398#p136398 https://fifapolonia.pl/forumfp/showthread.php?tid=27621 http://darmowebtc.pl/viewtopic.php?f=7&t=858034 https://r00tv.org/forum/showthread.php?tid=49663 http://faggotland.club/viewtopic.php?f=2&t=9545 http://54.88.117.117/viewtopic.php?f=3&t=60409 http://lekecik.com/showthread.php?p=384493#post384493 https://forum.mafia2-online.com/Thread-%D0%A5%D0%BE%D0%B4%D1%8F%D1%87%D0%B8%D0%B5-%D0%BC%D0%B5%D1%80%D1%82%D0%B2%D0%B5%D1%86%D1%8B-10-%D1%81%D0%B5%D0%B7%D0%BE%D0%BD-10-%D1%81%D0%B5%D1%80%D0%B8%D1%8F-%D0%B2%D1%81%D0%B5-%D1%81%D0%B5%D1%80%D0%B8%D0%B8-%EA%87%B0-12-03-20-%E3%8A%95-%D1%81%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C http://www.guild-infusion.org/forums/showthread.php?tid=907857 http://139.59.24.112/medical-wisdom/node/57?page=29#comment-546740 https://endlessdojrp.com/showthread.php?tid=4675&pid=107468#pid107468 https://r00tv.org/forum/showthread.php?tid=51486 http://www.koapa.org/forum/viewtopic.php?f=6&t=201720 https://www.structuralfea.com/forums/showthread.php?tid=27294 https://www.hercommonthread.com/2019/02/04/a-new-chapter/?unapproved=77603&moderation-hash=fe35da8cb46864c0ce7ff9978c5d5866#comment-77603 http://foro.vigilanciatecnologicarvt2.org/phpbb/viewtopic.php?f=9&t=1023551 https://forum.compucoin.org/showthread.php?tid=637318 http://www.buybababa.com/183.html?unapproved=143669&moderation-hash=1b82d2b6ef067709ab4a83c568ad68e1#comment-143669

Leave a Reply

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