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.

    uerzomdsg1fqvukr
    https://forum.streamclix.com/punbb/viewtopic.php?pid=30284#p30284
    http://www.ourcries.org/forums/showthread.php?tid=22924
    http://forumw.fearnode.net/general-discussion/900431869/fbymycxv
    https://cumagain.net/blog/4933
    https://stubnac.com/forum/viewtopic.php?f=10&t=552633
    http://naturalbodybuilding.ru/ru/node/14297#comment-166729
    http://diplomrus.ru/raboti/84302?new
    https://www.prosportsnow.com/forums/showthread.php?p=19390#post19390
    https://derintabak.com/tarifler/portakalli-muffin/?unapproved=8422&moderation-hash=ec23d73e6e23ff8e59de82496efb5bd6#comment-8422
    https://www.astrade.es/phpBB3/viewtopic.php?f=8&t=131485&sid=e03223a183abe715b88abec27ead1ca7
    http://veganchallenge.it/forum/viewtopic.php?f=5&t=105675
    https://bonqdaso.com/bds/viewtopic.php?pid=46638#p46638
    https://mvt.com.mx/asaltan-y-golpean-a-joven-en-centro-de-toluca/?unapproved=720148&moderation-hash=3113a4c503a7f6897f6be9a43a71cbad#comment-720148
    https://ausupreme.com/mavista/cms/en/contact-us?ticket=JUCZXFTYZU1600285713777
    http://fargoal.com/forums/viewtopic.php?f=3&t=443112
    http://www.wse-scylla.at/cms/index.php?option=com_joomlaboard&Itemid=55&func=view&catid=14&id=263776
    http://forume.fearnode.net/general-discussion/900431875/wtnkpetn
    http://www.game-train.de/index.php?task=view&id=73
    https://sexy-x-rated.us/showthread.php?tid=44462
    https://board.bmwcarmag.com/index.php?topic=449669.new#new
    https://one-on-one.ru/post/1261?page=860#comment-43086
    http://forume.fearnode.net/general-discussion/900431877/vcyjuwsl
    http://umsltan.com/vb/showthread.php?p=130103#post130103
    http://fifacup.pl/showthread.php?tid=98&pid=20826#pid20826
    https://tvsam.org/forum/the-100/tdfouxsq/
    http://board.cxejohns.com/viewtopic.php?pid=505925#p505925
    https://forum.iq-provision.ru/showthread.php?tid=61717
    http://fifacup.pl/showthread.php?tid=7390&pid=19972#pid19972
    http://163.32.94.234/artcms/forum/viewtopic.php?pid=985734#p985734
    http://catscoin.online/index.php/topic,8098.new.html#new
    http://forum.forcegame.ir/showthread.php?tid=114545
    https://footforthought.boardhost.com/viewtopic.php?pid=36199#p36199
    http://footgolffactory.com/viewtopic.php?f=2&t=8326
    http://desert-to-forest.tomasoso.de/forum/showthread.php?tid=23422
    http://foroapicultura.com/foro/viewtopic.php?f=14&t=70418
    http://www.wxedu.com.cn/forum.php?mod=viewthread&tid=2580805&extra=
    http://scitechfitness.com/dir/viewtopic.php?f=4&t=150952
    https://forum.tenno-inside.com/showthread.php?tid=97649
    http://kqra.com/showthread.php?tid=7008
    http://gamesnet.ro/viewtopic.php?f=2&t=66039
    http://fhcso.us/viewtopic.php?f=2&t=100231
    http://www.greatwallowners.com/viewtopic.php?f=5&t=206511
    https://kqra.com/showthread.php?tid=7009
    http://fargoal.com/forums/viewtopic.php?f=3&t=442904
    http://forum.arboreal.ru/viewtopic.php?f=4&t=7010
    https://jeoloji.org/viewtopic.php?pid=43640#p43640
    https://forum.hacknslashworld.com/viewtopic.php?f=9&t=43461
    https://forum.iq-provision.ru/showthread.php?tid=61719
    https://forum.streamclix.com/punbb/viewtopic.php?pid=28080#p28080
    http://forum.onmakeeva.site/viewtopic.php?f=4&t=10301
    https://ladbrokes88.info/forum/viewtopic.php?pid=12114#p12114
    https://btc357.com/forum/viewtopic.php?pid=180375#p180375
    http://hsforum.altervista.org/showthread.php?tid=1371&pid=57299#pid57299
    https://capbiz.su/index.php?/topic/336565-multfilm-ditia-pogody/
    http://foro-covid19.com/showthread.php?tid=125358
    https://capbiz.su/index.php?/topic/336566-smotret-anime-ditia-pogody/
    http://forum.searchforlight.de/viewtopic.php?f=4&t=6538
    https://hackz.com.br/showthread.php?tid=60854&pid=259316#pid259316
    http://hubforum.club/showthread.php?tid=23585
    http://intersavegame.co.uk/phpBB/viewtopic.php?f=3&t=914052
    http://forum.l2-aquarius.ru/index.php?/topic/178220-%C2%AB%D0%B4%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B%C2%BB-%D0%B1%D0%B5%D0%B7-%D1%80%D0%B5%D0%BA%D0%BB%D0%B0%D0%BC%D1%8B/
    http://labor-economics.org/forum/viewtopic.php?f=5&t=1371571
    http://hubforum.club/showthread.php?tid=23586
    http://forum.longlivethetribe.com/viewtopic.php?f=1&t=124283
    https://btc-f.org/forum/viewtopic.php?pid=141780#p141780
    http://www.onpflegeforum.de/post/2531960/#p2531960
    http://footgolffactory.com/viewtopic.php?f=2&t=8327
    http://www.iturdu.net/index.php?topic=30583.new#new
    https://moto-otzovik.ru/viewtopic.php?f=4&t=5622&p=131125#p131125
    https://forums.fpsgoons.org/viewtopic.php?f=4&t=62731
    http://forum.sailorstation.com/bb/viewtopic.php?f=20&t=436454
    http://concerns.sportshouse.com.ph/showthread.php?tid=427&pid=685947#pid685947
    https://inject0r.me/viewtopic.php?f=5&t=62629
    http://juggernautgamestudios.com/showthread.php?tid=3309&pid=19612#pid19612
    https://forum.konsole.space/index.php?/topic/8832-%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/
    http://forum.sailorstation.com/bb/viewtopic.php?f=20&t=436455
    https://forum.streamclix.com/punbb/viewtopic.php?pid=28081#p28081
    http://motosiklet.xyz/showthread.php?tid=32489&pid=296599#pid296599
    http://www.lindner-essen.de/forum/viewtopic.php?f=3&t=1771490
    http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=111313&Itemid=194#126702
    http://www.mcempire.net/forum/viewtopic.php?f=13&t=132983
    https://juggernautgamestudios.com/showthread.php?tid=3413
    https://cobva.com/beachpartnerpage/showthread.php?tid=167447
    https://cobva.com/beachpartnerpage/showthread.php?tid=167446
    http://hartkamer.nl/infusions/forum/viewthread.php?thread_id=168126
    https://jokerslotpulsa.xyz/viewtopic.php?f=13&t=112517
    http://forum.weightlosslottery.com/thread-304715.html
    https://www.klucze.co.uk/forum1/Upload/showthread.php?tid=371475
    http://electericneumann.com/forum/thread-28936.html
    https://forum.mukhronus.com/thread-638658.html
    http://666778.net/forum.php?mod=viewthread&tid=17314&extra=
    https://forum.mukhronus.com/thread-638661.html
    http://studyforum.com.au/forums/topic/%d1%84%d0%b8%d0%bb%d1%8c%d0%bc%d1%8b-%d0%be%d0%bd%d0%bb%d0%b0%d0%b9%d0%bd-%d0%b4%d0%b8%d1%82%d1%8f-%d0%bf%d0%be%d0%b3%d0%be%d0%b4%d1%8b/
    http://forum.swissponic.ch/viewtopic.php?f=13&t=694522
    http://zhangfengya.cn/forum.php?mod=viewthread&tid=1223402&extra=
    https://l2agony.net/forum/viewtopic.php?f=3&t=160978&p=201498#p201498
    http://gueli.info/include.php?path=forumsthread&threadid=4015849&entries=0#post4458433
    http://alljordan.xyz/showthread.php?tid=5078&pid=6480#pid6480
    http://partnerschaftsvereine.landkreis-muenchen.de/showthread.php?tid=28981
    http://bis-zum-tod.eu/phpbb3/viewtopic.php?f=7&t=888761

Leave a Reply

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