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.

    cyeernzkejjfmssr
    https://armalifeitalia.altervista.org/forum/index.php?topic=134359.new#new
    http://guncontroldoesntwork.com/viewtopic.php?pid=188868#p188868
    http://forumy.fearnode.net/general-discussion/872085858/wftqk224
    http://mymix.nl/muizenforum/viewtopic.php?f=4&t=406861
    http://www.nsu-club.com/forum/viewtopic.php?f=10&t=526685
    https://forum.elbrocker.de/showthread.php?tid=568336&pid=1166606#pid1166606
    http://enea.edu.mx/foro/viewtopic.php?f=7&t=223718
    https://revolutiondm.mojkgb.com/index.php?topic=159947.new#new
    http://battleland.org/board/viewtopic.php?f=33&t=262705
    http://www.mytravel.lk/viewtopic.php?f=4&t=173841
    http://beagleforum.de/viewtopic.php?f=13&t=386590
    https://stubnac.com/forum/viewtopic.php?f=6&t=197072
    http://www.trocdelavape.com/thread-175161.html
    http://www.trocdelavape.com/thread-175160.html
    http://smmnova.com/forum/showthread.php?tid=643077
    http://tapoutgaming.com/forum/showthread.php?tid=278080
    http://www.association-manoirducrime.fr/forum/viewtopic.php?pid=2649578#p2649578
    http://canada.sinnersorsaints.de/showthread.php?tid=300628
    https://kuchs.pl/forum/showthread.php?tid=51056
    http://www.forum-games.net/viewthread.php?tid=78444#pid78701
    http://www.norcalcoda.org/webnotes/viewtopic.php?f=4&t=47288
    https://forum.hss-mta.com/index.php?/topic/13276-fnebp272/
    http://forum.csbomb.ru/viewtopic.php?f=4&t=186615
    http://50.87.197.159/index.php/forum/welcome-mat/216424-cmbrighx#417970
    https://www.ispforum.in/showthread.php?tid=11495&pid=158889#pid158889
    https://forum.elbrocker.de/showthread.php?tid=540941&pid=1076078#pid1076078
    http://pionver.xyz/viewtopic.php?f=2&t=160333
    https://forum.picbaron.com/showthread.php?tid=543241&pid=821688#pid821688
    https://www.newherbvision.co.th/1/index.php?topic=287600.new#new
    http://cebuemployment.com/showthread.php?tid=13074&pid=131320#pid131320
    http://vbeinfo.net/boards/topic/415192/kcekowmb
    http://wall2wallgaming.com/forum/showthread.php?tid=172039
    https://www.newherbvision.co.th/1/index.php?topic=287607.new#new
    https://flutterappbuilder.club/chat/showthread.php?tid=653934
    https://flutterappbuilder.club/chat/showthread.php?tid=653933
    http://sun-kg.org/forum/viewtopic.php?f=2&t=1038174&p=1416516#p1416516
    http://www.donbass-info.de/forum/viewtopic.php?f=3&t=597032
    http://coolstf.com/forum/viewtopic.php?f=2&t=959376&sid=a8293794a423e92731d2802600e03aca
    http://darmowebtc.pl/viewtopic.php?f=7&t=523472
    http://testmed.info/forum/viewtopic.php?f=27&t=432429
    http://smmnova.com/forum/showthread.php?tid=592434
    http://wingedfoxchronicles.bullockarts.com/comunity/viewtopic.php?f=3&t=257679
    http://rubicon.forumex.ru/viewtopic.php?f=45&t=106783
    http://bazarukraine.com/showthread.php?p=1708371&posted=1#post1708371
    https://cryptoforumtalk.org/showthread.php?tid=251233
    http://forum.weightlosslottery.com/thread-96100.html
    https://cryptoforumtalk.org/showthread.php?tid=251235
    http://toxiicgamer.altervista.org/forum/showthread.php?tid=196253
    http://naukifizyczne.pl/forum/viewtopic.php?f=6&t=421463
    https://forum.pwilson-web.com/viewtopic.php?pid=55308#p55308
    https://forum.ac-jete.it/index.php?topic=1621229.0
    http://www.cardiogarda.com/modules.php?name=Your_Account&op=userinfo&username=HermanO87
    http://www.carlodesantis.it/%d1%81%d0%bc%d0%be%d1%82%d1%80%d0%b5%d1%82%d1%8c-%d0%b2%d0%bf%d0%b5%d1%80%d1%91%d0%b4-%d0%be%d0%bd%d0%bb%d0%b0%d0%b9%d0%bd/
    https://n-sb.org/wiki/index.php?title=%C3%90%C2%A1%C3%90%C5%93%C3%90%C5%BE%C3%90%C2%A2%C3%90_%C3%90%E2%80%A2%C3%90%C2%A2%C3%90%C2%AC_%C3%90%C2%A4%C3%90%C2%B8%C3%90%C2%BB%C3%91%C5%92%C3%90%C2%BC_%C3%90%C2%A3%C3%90%C2%B3%C3%90%C2%BB%C3%90%C2%B5%C3%91%E2%82%AC%C3%90%C2%BE%C3%90%C2%B4_%C3%90%C3%A2%E2%82%AC%E2%84%A2%C3%90%C2%B8%C3%90%C2%B4%C3%90%C2%BE%C3%90%C2%B8%C3%90%C2%B7%C3%90%C2%BC%C3%90%C2%B5%C3%90%C2%BD%C3%90%C2%B5%C3%90%C2%BD%C3%90%C2%BD%C3%91%E2%80%B9%C3%90%C2%B9_%C3%90%C2%A3%C3%90%C2%B3%C3%90%C2%BB%C3%90%C2%B5%C3%91%E2%82%AC%C3%90%C2%BE%C3%90%C2%B4_%C3%90%C2%A1%C3%90%C2%BC%C3%90%C2%BE%C3%91%E2%80%9A%C3%91%E2%82%AC%C3%90%C2%B5%C3%91%E2%80%9A%C3%91%C5%92_%C3%90%C5%BE%C3%90%C2%BD%C3%90%C2%BB%C3%90%C2%B0%C3%90%C2%B9%C3%90%C2%BD..
    http://xn--l1adgmc.xn—-7sbeg1aauudo4a.xn--p1ai/index.php?topic=271947.0
    http://www.txexla.fraserphysics.com/index.php?title=%C3%90%C2%A1%C3%90%C2%BC%C3%90%C2%BE%C3%91%E2%80%9A%C3%91%E2%82%AC%C3%90%C2%B5%C3%91%E2%80%9A%C3%91%C5%92_%C3%90%C5%BE%C3%90%C2%B4%C3%90%C2%BD%C3%90%C2%B0%C3%90%C2%B6%C3%90%C2%B4%C3%91%E2%80%B9_%C3%90%C3%A2%E2%82%AC%E2%84%A2_%C3%90%E2%80%9C%C3%90%C2%BE%C3%90%C2%BB%C3%90%C2%BB%C3%90%C2%B8%C3%90%C2%B2%C3%91%C6%92%C3%90%C2%B4%C3%90%C2%B5_%C3%90%C2%A1%C3%90%C2%BC%C3%90%C2%BE%C3%91%E2%80%9A%C3%91%E2%82%AC%C3%90%C2%B5%C3%91%E2%80%9A%C3%91%C5%92_%C3%90%C5%BE%C2%BD%C3%90%C2%BB%C3%90%C2%B0%C3%90%C2%B9%C3%90%C2%BD_%C3%90%C3%A2%E2%82%AC%E2%84%A2_%C3%90%C2%A5%C3%90%C2%BE%C3%91%E2%82%AC%C3%90%C2%BE%C3%91%CB%86%C3%90%C2%B5%C3%90%C2%BC_%C3%90%C5%A1%C3%90%C2%B0%C3%91%E2%80%A1%C3%90%C2%B5%C3%91%C3%91%E2%80%9A%C3%90%C2%B2%C3%90%C2%B5..
    http://wiki-intel.org/index.php?title=%C3%90%C2%A1%C3%90%C2%BC%C3%90%C2%BE%C3%91%E2%80%9A%C3%91%E2%82%AC%C3%90%C2%B5%C3%91%E2%80%9A%C3%91%C5%92_%C3%90%C5%BE%C3%90%C2%BD%C3%90%C2%BB%C3%90%C2%B0%C3%90%C2%B9%C3%90%C2%BD_%C3%90%C3%A2%E2%82%AC%E2%84%A2%C3%90%C2%BF%C3%90%C2%B5%C3%91%E2%82%AC%C3%91%E2%80%98%C3%90%C2%B4_%C3%90%C3%A2%E2%82%AC%E2%84%A2%C3%90%C2%BF%C3%90%C2%B5%C3%91%E2%82%AC%C3%91%E2%80%98%C3%90%C2%B4_%C3%90%C3%A2%E2%82%AC%E2%84%A2_%C3%90%C2%A5%C3%90%C2%BE%C3%91%E2%82%AC%C3%90%C2%BE%C3%91%CB%86%C3%90%C2%B5%C3%90%C2%BC_%C3%90%C5%A1%C3%90%C2%B0%C3%91%E2%80%A1%C3%90%C2%B5%C3%91%C3%91%E2%80%9A%C3%90%C2%B2%C3%90%C2%B5.
    http://www.rclegends.co.uk/discussion/151398/hd-odnazhdy-v-gollivude-odnazhdy-v-gollivude-smotret-onlayn-2020
    http://eltobogancr.com/?option=com_k2&view=itemlist&task=user&id=205819
    http://csvt.in/?option=com_k2&view=itemlist&task=user&id=634778
    http://www.ergoplus.it/?option=com_k2&view=itemlist&task=user&id=2542862
    https://80.26.155.59/mediawiki/index.php/%D0%A4%D0%B8%D0%BB%D1%8C%D0%BC_%D0%A1%D0%BC%D0%B5%D1%80%D1%82%D1%8C_%D0%98_%D0%A0%D0%BE%D0%B1%D0%BE%D1%82%D1%8B_%D0%9B%D1%8E%D0%B1%D0%BE%D0%B2%D1%8C_%D0%A1%D0%BC%D0%B5%D1%80%D1%82%D1%8C_%D0%98_%D0%A0%D0%BE%D0%B1%D0%BE%D1%82%D1%8B_%D1%81%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C_%D0%9E%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD_2020_.
    http://tuune.me/%d1%81%d0%bc%d0%be%d1%82%d1%80%d0%b5%d1%82%d1%8c-%d0%bd%d0%b0-%d0%be%d1%81%d1%82%d1%80%d0%b8%d0%b5-%d0%bd%d0%b0-%d0%be%d1%81%d1%82%d1%80%d0%b8%d0%b5-%d0%be%d0%bd%d0%bb%d0%b0%d0%b9%d0%bd/
    https://belizeanuncio.com/user/profile/1188725
    http://online.jhcsc.edu.ph/wiki/index.php/%D0%A1%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C_%D0%9E%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD_%D0%A2%D1%80%D0%BE%D0%BB%D0%BB%D0%B8_2_%D0%9C%D0%B8%D1%80%D0%BE%D0%B2%D0%BE%D0%B9_%D0%A2%D1%83%D1%80.%D0%A2%D1%80%D0%BE%D0%BB%D0%BB%D0%B8_2_%D0%9C%D0%B8%D1%80%D0%BE%D0%B2%D0%BE%D0%B9_%D0%A2%D1%83%D1%80_%D0%9E%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD..
    http://mcdonogh35archive.com/index.php?title=%C3%90%C2%A4%C3%90%C2%B8%C3%90%C2%BB%C3%91%C5%92%C3%90%C2%BC_%C3%82%C2%AB%C3%90%C3%A2%E2%82%AC%E2%84%A2%C3%90%C2%BF%C3%90%C2%B5%C3%91%E2%82%AC%C3%91%E2%80%98%C3%90%C2%B4%C3%82%C2%BB_%C3%91%C3%90%C2%BC%C3%90%C2%BE%C3%91%E2%80%9A%C3%91%E2%82%AC%C3%90%C2%B5%C3%91%E2%80%9A%C3%91%C5%92_%C3%90%C5%BE%C3%90%C2%BD%C3%90%C2%BB%C3%90%C2%B0%C3%90%C2%B9%C3%90%C2%BD_.
    https://sdk.rethinkrobotics.com/intera/User:RondaMark60
    http://classified.indalp.com/user/profile/1086772
    http://barterlosangeles.com/author/antwanzieli/
    http://jesusandmarypatna.com/?option=com_k2&view=itemlist&task=user&id=4782544
    http://www.wiki-peps.fr/mediawiki/index.php/%C3%90%C2%A1%C3%90%C5%93%C3%90%C5%BE%C3%90%C2%A2%C3%90_%C3%90%E2%80%A2%C3%90%C2%A2%C3%90%C2%AC_%C3%90%C2%A2%C3%91%E2%82%AC%C3%90%C2%BE%C3%90%C2%BB%C3%90%C2%BB%C3%90%C2%B8_2_%C3%90%C5%93%C3%90%C2%B8%C3%91%E2%82%AC%C3%90%C2%BE%C3%90%C2%B2%C3%90%C2%BE%C3%90%C2%B9_%C3%90%C2%A2%C3%91%C6%92%C3%91%E2%82%AC_%C3%90%C3%A2%E2%82%AC%E2%84%A2_%C3%90%C2%A5%C3%90%C3%91%E2%82%AC%C3%90%C2%BE%C3%91%CB%86%C3%90%C2%B5%C3%90%C2%BC_%C3%90%C5%A1%C3%90%C2%B0%C3%91%E2%80%A1%C3%90%C2%B5%C3%91%C3%91%E2%80%9A%C3%90%C2%B2%C3%90%C2%B5.
    https://keo888.com/tile/profile.php?id=305376
    http://www.desideriovalerio.com/modules.php?name=Your_Account&op=userinfo&username=Tracey92Y
    http://yafeiml.awardspace.us/viewthread.php?tid=1369163&extra=
    https://devilcs.ro/forum/index.php?/topic/119092-nmz/
    http://forum.digilyze.info/viewtopic.php?f=2&t=343482
    https://zanadu.ru/showthread.php?t=416393&p=716152#post716152
    http://vb.ghalaa.com/showthread.php?p=5234035#post5234035
    http://85.21.240.128/forum/viewtopic.php?f=8&t=98209&sid=c1236df830a9ce01a04ff230d5e53fc3
    https://www.forumtogel.org/viewtopic.php?f=4&t=334720
    http://stebrov.cz/diskus/viewtopic.php?f=4&t=690586
    http://174.138.70.185/board/viewtopic.php?f=6&t=134078
    https://is-angola.com/courses/gestao-de-empresas/?unapproved=2289&moderation-hash=93f75d6fa0a43112f9250ff1059746b2#comment-2289
    http://www.youtubeforum.net/hci–59626-konusu.html
    http://30secondstomars.es/best-challenger-banks-in-spain-whats-their-tech/?unapproved=120919&moderation-hash=5a34dbe45d2bafc78b59efc71096a363#comment-120919
    http://classicmovies.cn/forum.php?mod=viewthread&tid=2492043&extra=
    http://satakunnanvanhustuki.fi/forum/viewtopic.php?f=2&t=553290
    https://cryptographybuzz.com/portsmash-hyper-threading-decryption-keys/?unapproved=221162&moderation-hash=10235ce9c279889505c751ab9082717d#comment-221162
    http://hasanaty.com/viewtopic.php?f=2&t=45013
    http://wingedfoxchronicles.bullockarts.com/comunity/viewtopic.php?f=3&t=319013&p=420012#p420012
    https://arabasevgisi.com/showthread.php?tid=17864
    http://pionver.xyz/viewtopic.php?f=2&t=229250
    http://54bf.ru/forums/topic/xcc/
    http://www.weiqihuo.com/thread-129570-1-1.html
    http://amygibbs.co.uk/print-quote-request/?contact-form-id=84&contact-form-sent=72940&contact-form-hash=3d9118dc83eac0b0223b0f8c58630814c8e97b6b&_wpnonce=6b2e213cdb
    https://www.niwoshare.com/forum.php?mod=viewthread&tid=26077&extra=
    http://777relax.com/forum/viewtopic.php?f=7&t=25427
    http://www.seedrah.net/vb/showthread.php?p=334667#post334667
    http://tdedchangair.com/webboard/viewtopic.php?f=9&t=31609

Leave a Reply

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