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.

    urwsumdsg1fqknla
    https://enisan.com.tr/forum/viewtopic.php?f=7&t=78309
    http://www.estudiandoenmadres.com.ar/foro/index.php?topic=50617.new#new
    http://forum.agopengps.com/viewtopic.php?f=2&t=101702
    https://whichworksbest.com/the-medium-is-the-medicine/?unapproved=19429&moderation-hash=dbf4b1db384a8bc0a32c87ff58ec91c6#comment-19429
    https://kqra.com/showthread.php?tid=2860&pid=70633#pid70633
    http://cb44al.com/forum.php?mod=viewthread&tid=24554&extra=
    http://leeightontalksaboutpokemon.net/forums/showthread.php?58307-fdagtxdv&p=134538#post134538
    https://dk-rsps.com/community/showthread.php?tid=2895
    http://forum.dancingpartners.info/viewtopic.php?f=49&t=676484
    http://khalidalshaikh-fans.com/forum/showthread.php?p=1192115#post1192115
    https://newkek.com/viewtopic.php?f=12&t=15896
    https://soa.network/viewtopic.php?f=7&t=140808
    https://wap.whycj.cn/forum.php?mod=viewthread&tid=90349&extra=
    https://flashmag.tn/contact/?contact-form-id=20&contact-form-sent=179386&contact-form-hash=c348eb28802c8ed0086fe78833a28285c7557b7b&_wpnonce=789b439491
    https://vaporizerx.com/some-thoughts-on-vaping-and-snowboarding/?unapproved=67224&moderation-hash=20dd8100e0dcc0c9ecd79bbe56a55378#comment-67224
    https://www.corporateradiosucks.com/forum/showthread.php?72897-aqnlifyw&p=340895#post340895
    http://forum.weightlosslottery.com/thread-305817.html
    http://tenonbest.com/index.php?s=/Guestbook/index.html
    https://toptoursmongolia.com/kharakhorum-erdene-zuu-monastery/?unapproved=371714&moderation-hash=fbb82226689b75cc1b063d25109f6d7a#comment-371714
    http://forum.searchforlight.de/viewtopic.php?f=4&t=6825
    http://labor-economics.org/forum/viewtopic.php?f=5&t=1374050
    https://the-empire.clan.su/forum/18-363-46#27785
    http://9month.ru/forum/showthread.php?435873-mfdkgxfj&p=986709#post986709
    http://scort.vip/comunidad/viewtopic.php?f=8&t=32962
    https://www.l2agony.net/forum/viewtopic.php?f=3&t=160978&p=204529#p204529
    http://forum.sailorstation.com/bb/viewtopic.php?f=20&t=434439
    http://manner.gain.tw/viewthread.php?tid=1727599&extra=
    https://capbiz.su/index.php?/topic/330901-anime-ditia-pogody-smotret-onlain-polnostiu/
    http://redladrilleras.net/apps/foro/viewtopic.php?f=2&t=183927
    http://www.division-gaming.net/test2000/index.php/forum/2-welcome-mat/1830875#1830875
    http://35.192.30.48/index.php/topic,17562.new.html#new
    https://modelcarsforum.com/showthread.php?tid=94054
    http://www.bec-dnepr.com/forum/viewtopic.php?f=2&t=188358
    http://protee.guru/viewtopic.php?f=8&t=114074
    https://www.fbnewspost.com/index.php/topic,109141.new.html#new
    http://www.veganmealplan.net/forum/index.php?threads/%D0%94%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-2020-%D0%B0%D0%BD%D0%B8%D0%BC%D0%B5-%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.1094047/
    http://falforum.org/viewtopic.php?f=4&t=30998
    http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=110726&Itemid=194#126003
    http://199cr.com/thread-408871-1-1.html
    http://www.problogger.my/community/viewtopic.php?f=14&t=32983
    http://www.s-server.vip/viewtopic.php?f=1&t=42841
    https://www.sonmafya.com/forum/showthread.php?tid=82091
    http://www.estudiandoenmadres.com.ar/foro/index.php?topic=48161.new#new
    https://www.8n8n.work/forum.php?mod=viewthread&tid=926520&extra=
    http://manner.gain.tw/viewthread.php?tid=1727608&extra=
    http://www.15forum.com/showthread.php?tid=100170&pid=193779#pid193779
    https://web-games.net/viewtopic.php?f=4&t=6627
    https://higginsgaming.com/viewtopic.php?f=8&t=188253
    http://49wd.com/forum.php?mod=viewthread&tid=49934&extra=
    http://xtasyradio.com/forum/showthread.php?tid=273964
    https://noxious.pw/thread-241703.html
    https://noxious.pw/thread-241701.html
    https://noxious.pw/thread-241702.html
    http://sayyourown.com/viewtopic.php?f=2&t=21145
    https://www.smzsf.com/thread-16920-1-1.html
    https://www.klucze.co.uk/forum1/Upload/showthread.php?tid=370914
    http://wowshop.com.tw/art/forum.php?mod=viewthread&tid=7130&pid=565116&page=27108&extra=#pid565116
    http://www.forumgowes.com/thread-108165.html
    http://thienlam.org/forum/viewtopic.php?f=19&t=109843
    https://prisaoinvisivel.com.br/forum/viewtopic.php?f=17&t=237977
    http://www.poultry.space/viewtopic.php?pid=385867#p385867
    http://www.poultry.space/viewtopic.php?pid=385863#p385863
    http://megyaszoiskola.hu/forum/2-belepo-kapu/4575892-links-to-onion-sites-tor-browser-onion-web-addresses-of-sites-in-the-tor-browser-toronion-urls-directories-dark-wiki-onion-urls-tor-torsitebiz?limit=6&start=282966#9543624
    http://ugscene.kapsi.fi/viewtopic.php?f=15&t=937333
    https://l2agony.net/forum/viewtopic.php?f=3&t=160978&p=200426#p200426
    http://www.atlantascreenwriters.net/phpbb/viewtopic.php?f=1&t=880841
    http://bis-zum-tod.eu/phpbb3/viewtopic.php?f=7&t=888010
    http://melevistas.com/viewtopic.php?f=4&t=95726
    https://kqra.com/showthread.php?tid=6902
    https://capbiz.su/index.php?/topic/330902-ditia-pogody-anime-film-posmotret-onlain/
    https://camp-market.ru/forum/messages/forum1/topic120/message3194/?result=reply#message3194
    https://www.lewistee.com/forum/viewtopic.php?f=10&t=41249
    http://pistonpowercarclub.co.uk/index.php?topic=8887.new#new
    https://forum.phyterya.com/showthread.php?tid=7452&pid=7802#pid7802
    http://leeightontalksaboutpokemon.net/forums/showthread.php?54608-%D0%A0%E2%80%9D%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-2019-%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=121690#post121690
    https://russianmagia.com/viewtopic.php?f=5&t=104146
    http://forum.smartsoft.it/viewtopic.php?p=9036#9036
    http://forum.2serveothers.com/showthread.php?tid=338573
    http://www.israelru.botvinik.net/forum/viewtopic.php?f=19&t=3149
    https://dashcams.com.br/forum/showthread.php?tid=35609&pid=48011#pid48011
    http://alansab.net/forum/showthread.php?p=119003#post119003
    http://test.windsorpie.com/forum.php?mod=viewthread&tid=686953&extra=
    http://www.10sfw.com/forum.php?mod=viewthread&tid=9532&extra=
    https://higginsgaming.com/viewtopic.php?f=8&t=188254
    https://www.rubinum.mojkgb.com/forums/viewtopic.php?pid=13765#p13765
    http://christmas.regenbogenwiese.net/index.php?guestbook-entry/4980953-%D0%B4%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B-2020-%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%B4%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B/
    https://prisaoinvisivel.com.br/forum/viewtopic.php?f=17&t=237979
    https://bonqdaso.com/bds/viewtopic.php?pid=41013#p41013
    http://163.32.94.234/artcms/forum/viewtopic.php?pid=982895#p982895
    http://www.kolaservers.net/forums/showthread.php?tid=3131
    https://board.bmwcarmag.com/index.php?topic=439211.new#new
    https://btcasino.net/forum/viewtopic.php?pid=94358#p94358
    http://skyscrapercity.me/showthread.php?p=625558#post625558
    http://www.namistt.com/forums/viewtopic.php?f=5&t=198358
    http://forum.searchforlight.de/viewtopic.php?f=4&t=6406
    https://www.proggnosis.com/Forum/topic4239——.aspx?MessageID=4610
    http://forum.onmakeeva.site/viewtopic.php?f=4&t=10040
    https://xemtinhay.com/tinmoi/viewtopic.php?pid=87421#p87421
    http://xn--9rqw9pzsay9a679c.xn--kbto70f.com/forum.php?mod=viewthread&tid=73035&extra=
    https://rostokfamily.ru/forum/messages/forum1/topic7/message9304/?result=reply#message9304

Leave a Reply

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