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.

    tvgjxtgtmzlwjfunxb
    http://fastfoodfanatics.com/showthread.php?tid=241456&pid=938823#pid938823 http://nutritionpersonalized.com/forum/viewtopic.php?f=4&t=324036 http://grupalotek.pl/viewtopic.php?f=2&t=46217 https://www.structuralfea.com/forums/showthread.php?tid=27959 https://forum.mafia2-online.com/Thread-%C2%AB%D0%97%D0%B0%D1%87%D0%B0%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%BD%D1%8B%D0%B5-2-%D1%81%D0%B5%D0%B7%D0%BE%D0%BD-12-%D1%81%D0%B5%D1%80%D0%B8%D1%8F-%C2%BB-%D0%B2%D1%81%D0%B5-%D1%81%D0%B5%D1%80%D0%B8%D0%B8-%E2%A4%8C-%D0%BC%D0%B0%D1%80%D1%82%D0%B0-12-2020-%E3%8F%86-seriyal http://174.138.70.185/board/viewtopic.php?f=6&t=150956 http://www.ultraszilina.sk/oz-zf/414-nove-veci-vo-fanshope/?cp=5564#comment-809573 http://mangaes.net/viewtopic.php?f=64&t=130010 https://tacticalsurvivalpreparedness.com/2018/09/30/papas-famous-catfish-bait-recipe/?unapproved=5522&moderation-hash=43c8559a95f241224e8d6792c12ddae7#comment-5522 http://teamplay.gg/index.php?/topic/863756-%D0%B2%D0%B5%D0%B4%D1%8C%D0%BC%D0%B0%D0%BA-9-%D1%81%D0%B5%D1%80%D0%B8%D1%8F-%D1%81%D0%B2%D0%B5%D0%B6%D0%B8%D0%B9-%D1%81%D0%B5%D0%B7%D0%BE%D0%BD-%D1%81%D0%B5%D1%80%D0%B8%D1%8F-%D1%81%D0%B5%D1%80%D0%B8%D0%B0%D0%BB-%E2%88%BF-%D0%BC%D0%B0%D1%80%D1%82-12-2020-%E1%B6%80-%D1%81%D0%B5%D1%80%D0%B8%D0%B0%D0%BB/ http://babydecorideas.club/showthread.php?tid=11351&pid=313235#pid313235 http://detsad3aksay.ru/component/kunena/3-razdel-predlozhenij/442186-vedmak-the-witcher-9-seriya-smotret-serial-12-03-20-online?Itemid=0#442186 http://ldkspain.ovh/viewtopic.php?f=5&t=226254 http://www.clearipcc.xyz/viewtopic.php?f=2&t=106223 http://muaban.tinhsoctrang.com/showthread.php?tid=1965&pid=30925#pid30925 http://jetclub.gr/forum/viewtopic.php?f=57&t=11545 https://netlug.com.hr/showthread.php?tid=12605&pid=64833#pid64833 http://moto-barn.com/forum/viewtopic.php?f=9&t=138575 http://quejasyabusosdelacaixa.com/index.php?topic=53948.new#new http://testmed.info/forum/viewtopic.php?f=27&t=719902 http://fin.chat/viewtopic.php?f=2&t=3&p=23819#p23819 http://www.sherifstores.com/blog/%D8%A8%D8%A8?page=1395#comment-69844 http://eddys-domain.de/forum/viewtopic.php?f=18&t=224661 https://unityroleplay.org/Forums/showthread.php?tid=20410 https://tacticalsurvivalpreparedness.com/2018/09/30/papas-famous-catfish-bait-recipe/?unapproved=4504&moderation-hash=dd760499539880ebb30fc1c8b28830bd#comment-4504 http://ldkspain.ovh/viewtopic.php?f=5&t=224925 http://opel-help.ru/showthread.php?t=215250&p=306711#post306711 http://informaremos.com/o-que-sao-commodities/?unapproved=330902&moderation-hash=7b9d67faf561aa0c67c7429fd606d726#comment-330902 https://www.cryptodebate.com/thread-%D0%BC%D0%B0%D0%BD%D0%B4%D0%B0%D0%BB%D0%BE%D1%80%D0%B5%D1%86-themandalorian-2-%D1%81%D0%B5%D0%B7%D0%BE%D0%BD-1-%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-%E2%94%BE-%D0%BC%D0%B0%D1%80%D1%82-12-2020-%E2%9C%AC-seriya http://fastfoodfanatics.com/showthread.php?tid=220664&pid=945930#pid945930 http://www.conquestfororion.com/showthread.php?tid=1700&pid=334879#pid334879 http://ffxiprivateservers.club/viewtopic.php?f=11&t=250954 http://grupalotek.pl/viewtopic.php?f=2&t=48490 https://healthy.watch/forum/showthread.php?tid=90630 http://fotografhaberleri.net/forum/showthread.php?tid=187293 https://www.cryptodebate.com/thread-%C2%AB%D0%BC%D0%B5%D1%82%D0%BE%D0%B4-%D0%BA%D0%BE%D0%BC%D0%B8%D0%BD%D1%81%D0%BA%D0%B8-2-%D1%81%D0%B5%D0%B7%D0%BE%D0%BD-9-%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%92%A6-12-03-20-%E2%9C%96-seriya http://stockbazar.in/viewtopic.php?f=2&t=44345 https://forum.compucoin.org/showthread.php?tid=637348&pid=1286988#pid1286988 https://forum.compucoin.org/showthread.php?tid=637492&pid=1287969#pid1287969 http://itsoftgame.ru/eng/forum/bond2583735/ https://tureckij-serial.net/forums/viewtopic.php?f=7&t=50526 https://r00tv.org/forum/showthread.php?tid=51475 http://board.fightforempire2.net/viewtopic.php?f=13&t=12186 http://www.mcu4fun.com/index.php/2018/01/04/hello-world/?unapproved=20035&moderation-hash=80b04acbc4dedc934c3c671b214e28dc#comment-20035 http://forum-krasnogorsk.ru/viewtopic.php?f=104&t=724342 http://forum.pfsense.com.ar/viewtopic.php?f=2&t=144956 http://polishcrackers.eu/showthread.php?tid=127036 http://www.houseinheavens.com/viewtopic.php?pid=119212#p119212 http://highhopeshuntclub.com/viewtopic.php?f=1&t=287923 http://darmowebtc.pl/viewtopic.php?f=7&t=873229 http://www.koapa.org/forum/viewtopic.php?f=6&t=203061 http://nutritionpersonalized.com/forum/viewtopic.php?f=4&t=323146 http://www.davidcsimon.com/crimsondark/forum/viewtopic.php?f=3&t=4200 http://188.128.165.51/forum_Asdasd/viewtopic.php?f=25&t=993606 http://www.mytravel.lk/viewtopic.php?f=4&t=247028 http://vil.com.vn/forum/showthread.php?p=141635#post141635 http://xn--90aeeaawgguajpihbvhv8l5a.xn--p1ai/forum/viewtopic.php?p=989674&sid=1536588a0fd8d976360605fb0e4782c2#989674 http://wydarzenia.forum.ostrowiec.pl/viewtopic.php?f=31&t=29609 https://www.brendell.com/9-thread-milled/?unapproved=81766&moderation-hash=7e48e6210fa3e59a08d8eeb5ca602f49#comment-81766 http://darmowebtc.pl/viewtopic.php?f=19&t=871869 http://www.mytravel.lk/viewtopic.php?f=4&t=247676 https://fifapolonia.pl/forumfp/showthread.php?tid=27681 http://feierei.de/forums/topic/%d0%b7%d0%b2%d1%91%d0%b7%d0%b4%d0%bd%d1%8b%d0%b9-%d0%bf%d1%83%d1%82%d1%8c-%d0%bf%d0%b8%d0%ba%d0%b0%d1%80-4-%d1%81%d0%b5%d1%80%d0%b8%d1%8f-%d1%81%d0%bc%d0%be%d1%82%d1%80%d0%b5%d1%82-9/ http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=294325&Itemid=194#387431 https://negerekli.com/2019/10/17/hello-world/?unapproved=45297&moderation-hash=a0709fc3c9748f53196c1d6b81184f2a#comment-45297 https://www.foro.escarabajario.com/showthread.php?tid=15691 https://forum.blocksplode.com/showthread.php?tid=522355 http://forum.swissponic.ch/viewtopic.php?f=13&t=303390 http://pandarion-wow.com/forum/viewtopic.php?f=9&t=223023 http://cryptonews.keyforum.ru/viewtopic.php?f=28&t=97490 https://www.fpjd-ihsani.org/forum/index.php?topic=140270.new#new https://kenhdiaoc.com/dd/viewtopic.php?pid=212014#p212014 http://selfsufficienthub.com/forum/viewtopic.php?f=4&t=5073 https://www.hqrfeedback.com/viewtopic.php?f=7&t=31090 http://polishcrackers.eu/showthread.php?tid=129016&pid=219040#pid219040

Leave a Reply

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