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.

    5181276392226377952117321
    http://kinomozg.club/topic/127-mail-addurl/?page=8150#comment-145799 http://naturalbodybuilding.ru/ru/node/26352#comment-365641 http://gamingrev.com/2010/06/02/forum-is-back-online/?unapproved=68729&moderation-hash=45b27708a01c889714c0dca67ff42771#comment-68729 http://naturalbodybuilding.ru/ru/node/26352#comment-365642 http://naturalbodybuilding.ru/ru/node/26352#comment-365643 http://pulsar-forum.pl/showthread.php?tid=230122 https://sabettingforum.com/forum-3/topic/qvpmwwie http://forumjokerasia.com/showthread.php?tid=20786 https://onblackside.ucoz.ru/forum/9-84-428#64589 https://www.kasanet.pl/thread-8672.html http://metr.by/object/2083481 https://homment.com/5fJaX0D61gDAZmH500ug https://www.nflmessageboard.com/showthread.php?tid=108105 http://naturalbodybuilding.ru/ru/node/26352#comment-365646 http://bwgforums.net/showthread.php?tid=19187&pid=161143#pid161143
    http://nauc.info/forums/viewtopic.php?f=3&t=15786904 https://forum.wdwnorth.com/viewtopic.php?f=4&t=202228 http://q8c.net/viewtopic.php?f=2&t=12101 https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=390369 http://dogging.dk/forum/viewtopic.php?f=3&t=95001 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=539604&sid=c8f21eb4c2b3bb43e75bdf780bc9468e http://philippe.payro.free.fr/forum/viewtopic.php?f=2&t=145496 http://nauc.info/forums/viewtopic.php?f=3&t=15786913 https://www.fxforecasting.com/viewtopic.php?f=5&t=22120 http://protee.guru/viewtopic.php?f=8&t=2547094 http://protee.guru/viewtopic.php?f=8&t=2547098 http://forum.vkportal.ba/viewtopic.php?f=17&t=648&p=47364#p47364 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=539605&sid=ebeed257052178d390821ba6afa87526 http://nauc.info/forums/viewtopic.php?f=3&t=15786914 http://nauc.info/forums/viewtopic.php?f=3&t=15786923 http://generator.altervista.org/viewtopic.php?f=2&t=18794 http://discustorming.com/viewtopic.php?f=2&t=153201 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=539607&sid=0cbd260003a4306d83b7f4aa0b8da768 https://junkraiders.cl/foro/viewtopic.php?f=3&t=66716 http://nauc.info/forums/viewtopic.php?f=3&t=15786929 http://nauc.info/forums/viewtopic.php?f=3&t=15786933 http://oleksy-bau.de/index.php/forum/welcome-mat/1021558-2021#1020825 http://nauc.info/forums/viewtopic.php?f=3&t=15786925 https://forum.nebula-galaxia.de/viewtopic.php?f=2&t=563739 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=474683
    http://www.game-train.de/index.php?task=view&id=598 http://pastebin.calculate-linux.org/en/show/189728 https://community.thelovinggarden.com/showthread.php?tid=12414&pid=16093#pid16093 https://webboard.money.sanook.com/forum//smi_preview2.php?site=https://webboard.money.sanook.com/forum/&ID_BOARD=530&ID_TOPIC=11810524&ID_MSG=30264628 https://www.nflmessageboard.com/showthread.php?tid=108104&pid=213064#pid213064 http://naturalbodybuilding.ru/ru/node/26352#comment-365648 http://naturalbodybuilding.ru/ru/node/26352#comment-365649 http://forums.tpgrpg.net/showthread.php?tid=5892&pid=14909#pid14909 http://naturalbodybuilding.ru/ru/node/26352#comment-365653 https://www.nflmessageboard.com/showthread.php?tid=9355&pid=213062#pid213062 http://gimpel.ru/reviews#comment-176866 http://naturalbodybuilding.ru/ru/node/26352#comment-365651 https://webboard.club.sanook.com/forum//smi_preview2.php?site=https://webboard.club.sanook.com/forum/&ID_BOARD=556&ID_TOPIC=11810530&ID_MSG=30264634 http://naturalbodybuilding.ru/ru/node/26352#comment-365652 http://www.holistichappinessblog.com/apple-cheddar-kale-salad/?unapproved=1653212&moderation-hash=d52f4d6de2f3fddfab99076e38fc57ff#comment-1653212
    http://www.onlinexmassage.com/viewtopic.php?f=56&t=101062 http://www.onlinexmassage.com/viewtopic.php?f=56&t=101063 http://myweddinglight.us/index.php/topic,13898.new.html#new http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=141074&Itemid=194#141356 http://nauc.info/forums/viewtopic.php?f=3&t=15786947 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=539611&sid=f38a2b8ef32d6734405c90a8acd253b4 https://www.dumankayahifit.com/index.php?topic=35457.new#new http://nauc.info/forums/viewtopic.php?f=3&t=15786948 http://nauc.info/forums/viewtopic.php?f=3&t=15786949 http://nauc.info/forums/viewtopic.php?f=3&t=15786952 https://cartschat.com/viewtopic.php?f=3&t=32308 http://lasertrace.nl/forum/viewtopic.php?f=6&t=1185859 https://erpyme.cl/foro/viewtopic.php?f=10&t=126&p=15466#p15466 http://daggerbay.com/forum/viewtopic.php?f=5&t=77507 http://www.blenderturkiye.com/viewtopic.php?f=13&t=946569 http://melevistas.com/viewtopic.php?f=4&t=1867133 http://estetikvediyet.com/viewtopic.php?f=8&t=366157 https://lasertrace.nl/forum/viewtopic.php?f=6&t=1185867 http://ca.gopinball.com/forum/viewtopic.php?f=6&t=515380 http://banglaforum.net/forum/viewtopic.php?f=29&t=392718 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=539614&sid=e99c77e3c2aae4423bac50befcad64f6 https://tictocbay.com/viewtopic.php?f=19&t=10754 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=539615&sid=703c3f98dfd7b0d143a306efd54c283a https://jimhelton.com/viewtopic.php?f=2&t=252944 http://nauc.info/forums/viewtopic.php?f=3&t=15786959

Leave a Reply

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