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.

    mpgbwmdsg1fqeynk
    http://articool.ru/node/4#comment-71221
    http://christmas.regenbogenwiese.net/index.php?guestbook-entry/5011604-jcxjrazh/
    http://tv-pul.ru/communication/viewtopic.php?f=23&t=1686784
    http://my.jurnalotaku.com/contact-us/?contact-form-id=2755&contact-form-sent=276276&_wpnonce=768f61cebb
    https://whichworksbest.com/the-medium-is-the-medicine/?unapproved=19474&moderation-hash=1d049c8a89d4594db9e7339b3dd88b1a#comment-19474
    https://chronobns.boardhost.com/viewtopic.php?pid=204531#p204531
    https://ternate.karantina.pertanian.go.id/forum/viewtopic.php?pid=423774#p423774
    https://wap.whycj.cn/forum.php?mod=viewthread&tid=90425&extra=
    http://www.0755pylt.com/forum.php?mod=viewthread&tid=576&pid=706822&page=1050&extra=page%3D1#pid706822
    https://www.actioncams.com.br/forum/showthread.php?tid=307726
    http://shkola3-chp.ru/forum/viewtopic.php?f=3&t=137163
    http://www.tdedchangair.com/webboard/viewtopic.php?f=2&t=12619&p=107808#p107808
    http://www.fuoristradaweb.it/forum/viewtopic.php?f=12&t=210585
    http://valgemetsa.eu/gallery/pildid/?unapproved=825014&moderation-hash=baa2893ebbb68bf382e919af5bea4964#comment-825014
    https://www.successdigestforum.com/viewtopic.php?f=10&t=37954&p=1181942#p1181942
    https://www.corporateradiosucks.com/forum/showthread.php?72922-knbfwfbe&p=341042#post341042
    http://jollygreengiant.balunsat.org/01/gen/gen/index.php/forum/records/975487-ahyolewe#976432
    http://www.wbiaohome.net/forum.php?mod=viewthread&tid=105379&extra=
    http://gpstudentplacements.com.au/forums/topic/ctwgucqn/
    https://pctegames.com.br/forums/?unapproved=11871&moderation-hash=1980600693800276bf4287c163f563ae#comment-11871
    https://bromskirchen-info.de/2020/06/22/wieviel-strom-braucht-ein-auto-mit-verbrennungsmotor/comment-page-4/?unapproved=129890&moderation-hash=f02baad825618bc42a30d06e82c0f654#comment-129890
    https://toptoursmongolia.com/kharakhorum-erdene-zuu-monastery/?unapproved=371790&moderation-hash=39884bbfbc6fe0efd23d738ade019e97#comment-371790
    http://xn--c1akfd5azeb.xn--p1ai/forum/viewtopic.php?f=23&t=959554
    https://www.minexcointalk.com/how-to-earn-money-with-social-media/?unapproved=63398&moderation-hash=e8e1268d52a72a5b96411811afd2de91#comment-63398
    http://myforum.ums.co.ug/viewtopic.php?f=3&t=516241
    http://www.greatwallowners.com/viewtopic.php?f=5&t=205432
    https://moto-otzovik.ru/viewtopic.php?f=4&t=5622&p=129372#p129372
    http://prozon.org.pl/forum/viewtopic.php?pid=38218#p38218
    http://motosiklet.xyz/showthread.php?tid=28870&pid=295543#pid295543
    http://forum.mobilew88.com/viewtopic.php?pid=199478#p199478
    http://juggernautgamestudios.com/showthread.php?tid=3308&pid=18195#pid18195
    https://forum.konsole.space/index.php?/topic/8427-%D0%B0%D0%BD%D0%B8%D0%BC%D0%B5-%D0%B4%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B-%D0%BE%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD/
    https://forums.fpsgoons.org/viewtopic.php?f=4&t=62294
    http://nsu-club.com/forum/viewtopic.php?f=10&t=1449900
    https://coinping.co/btc/viewtopic.php?pid=157106#p157106
    http://gamingsiden.dk/viewtopic.php?f=7&t=111386
    http://alljordan.xyz/showthread.php?tid=4879&pid=6071#pid6071
    http://sat-plus.net/forum/index.php?topic=60974.new#new
    https://forum.tsukionline.com/index.php?/topic/89058-%D0%B4%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B-%E2%80%94-%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%BC%D1%83%D0%BB%D1%8C%D1%82%D1%84%D0%B8%D0%BB%D1%8C%D0%BC/
    https://reinigungsforum.de/threads/%D0%94%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.4022/
    https://inject0r.me/viewtopic.php?f=5&t=62152
    https://higginsgaming.com/viewtopic.php?f=8&t=187499
    https://kqra.com/showthread.php?tid=2860&pid=39242#pid39242
    https://realm.se/board/showthread.php?tid=835234
    http://forum.weightlosslottery.com/thread-304081.html
    https://insigniagsdrivers.co.uk/showthread.php?tid=49968
    https://coinping.co/btc/viewtopic.php?pid=157107#p157107
    http://newtopassau.com/viewtopic.php?pid=1024071#p1024071
    https://juggernautgamestudios.com/showthread.php?tid=3306&pid=18196#pid18196
    https://forum.streamclix.com/punbb/viewtopic.php?pid=27382#p27382
    http://jfkrfkmurdersolved.com/forum/viewtopic.php?f=6&t=21792
    https://itells.ru/viewtopic.php?pid=9350#p9350
    http://mastersofwords.com/viewtopic.php?f=7&t=241342
    https://on-lineclimat.ru/forum/messages/forum1/topic99/message16977/?result=reply#message16977
    https://www.klucze.co.uk/forum1/Upload/showthread.php?tid=370637
    https://w88homepage.com/w88/viewtopic.php?pid=78047#p78047
    https://plecodiscus.com/viewtopic.php?f=8&t=244315
    https://newkek.com/viewtopic.php?f=12&t=14760
    https://forum.hacknslashworld.com/viewtopic.php?f=9&t=43373
    https://w88homepage.com/w88/viewtopic.php?pid=78048#p78048
    http://mrssodhi.com/discussions/showthread.php?tid=149789
    https://jokerslotpulsa.xyz/viewtopic.php?f=13&t=110477
    https://unglont.ro/viewtopic.php?f=5&t=59450
    https://freeopen.cc/forum/viewtopic.php?f=2&t=121029&p=412530#p412530
    https://newkek.com/viewtopic.php?f=12&t=14761
    http://hartkamer.nl/infusions/forum/viewthread.php?thread_id=168025
    http://nutritionpersonalized.com/forum/viewtopic.php?f=4&t=613189
    https://maivfolk.com/forum/viewtopic.php?f=2&t=409885
    http://veganchallenge.it/forum/viewtopic.php?f=5&t=103909
    https://sexy-x-rated.us/showthread.php?tid=40912
    http://scort.vip/comunidad/viewtopic.php?f=8&t=31960
    http://simpinv.com/bbs/forum.php?mod=viewthread&tid=1498096&extra=
    http://forum.arboreal.ru/viewtopic.php?f=4&t=6682
    http://regenboogkabouters.messageboard.nl/forum/viewtopic.php?f=15&t=953256
    http://regenboogkabouters.messageboard.nl/forum/viewtopic.php?f=15&t=953255
    https://russianmagia.com/viewtopic.php?f=5&t=103697
    http://footgolffactory.com/viewtopic.php?f=2&t=7861
    http://simutrain.com/BB3/viewtopic.php?f=5&t=519605
    http://www.kolaservers.net/forums/showthread.php?tid=2937
    http://forum.18girls.org/showthread.php?tid=59952&pid=155940#pid155940
    https://ternate.karantina.pertanian.go.id/forum/viewtopic.php?pid=410332#p410332
    http://www.bec-dnepr.com/forum/viewtopic.php?f=2&t=187748
    https://www.5verdades.org/forum/thread-43674.html
    http://tdedchangair.com/webboard/viewtopic.php?f=2&t=64327
    http://www.bec-dnepr.com/forum/viewtopic.php?f=2&t=187749
    http://ambervibe.com/forum/viewtopic.php?f=6&t=266591
    http://www.sp3pje.ayz.pl/forum/showthread.php?tid=9099
    http://www.8thcav.com/forum/index.php?topic=28448.new#new
    https://btcoinz.com/forum/viewtopic.php?pid=152920#p152920
    http://redladrilleras.net/apps/foro/viewtopic.php?f=2&t=183581
    https://www.astrade.es/phpBB3/viewtopic.php?f=8&t=129842&sid=e9fabff09dafa7fec4b2519cc7a731c8
    http://techniqueauto.ch/forum/welcome-mat/552122-ditja-p-g-di-nim-2020#552127
    https://modelcarsforum.com/showthread.php?tid=93300
    http://www.iturdu.net/index.php?topic=28285.new#new
    http://thriftcartel.com/viewtopic.php?f=7&t=26053
    http://www.tennis.kz/fluxbb/viewtopic.php?pid=870631#p870631
    http://affiliateforums.org/viewtopic.php?f=5&t=1421522
    https://insigniagsdrivers.co.uk/showthread.php?tid=49970
    https://xemtinhay.com/tinmoi/viewtopic.php?pid=86403#p86403
    http://www.kanada-forum.net/auswandern-f5/-%D0%94%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B-%D0%B4%D0%BB%D1%8F-ipad–t109289.html

Leave a Reply

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