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.

    3417879720222637880983195
    http://naturalbodybuilding.ru/ru/node/13885#comment-360903 http://www.anstiss.com/?contact-form-id=widget-text-9&contact-form-sent=310857&contact-form-hash=226da66c92c2bee8af63abc8086fc7e635d09b21&_wpnonce=5056b72653 http://naturalbodybuilding.ru/ru/node/13885#comment-360904 http://metr.by/object/2078224 https://www.successdigestforum.com/viewtopic.php?f=6&t=1856473 http://pulsar-forum.pl/showthread.php?tid=227834 http://kafferecept.se/recipe/chai-latte/?unapproved=860196&moderation-hash=3a48b9430550936919dbbe89001fad07#comment-860196 https://www.minexcointalk.com/how-to-make-money-as-a-student-in-the-uk/?unapproved=82233&moderation-hash=b5fabaa63149bb9a6daf467120db000d#comment-82233 http://weebbun.com/showthread.php?tid=214186 https://studentskorner.com/showthread.php?tid=32933&pid=50820#pid50820 https://www.kasanet.pl/thread-8257.html https://www.source-forum.com/showthread.php?tid=159745 https://kusbaz.ru/viewtopic.php?f=45&t=223912 https://clancannabis.com.br/forum/showthread.php?tid=7690 https://suppliertynews.com/contact/?contact-form-id=3&contact-form-sent=71847&contact-form-hash=35d9cdd79d171c4ff22c7543d3323a5594b1cad2&_wpnonce=71b3196915
    http://cyberweb.pt/viewtopic.php?f=16&t=70281 https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=388059 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=534457&sid=2e2709fab527c06234dc8089d2424c6a https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=388060 http://www.inforbarget.fr/forum/viewtopic.php?f=20&t=40389 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2721493 http://nauc.info/forums/viewtopic.php?f=3&t=15773781 http://nauc.info/forums/viewtopic.php?f=3&t=15773782 http://sound-book.net/viewtopic.php?f=5&t=42996 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=534458&sid=0e32b1472094969a71e4c86727bae2dd https://jimhelton.com/viewtopic.php?f=2&t=248677 https://tg-dst.ru/forum/messages/forum1/topic66/message108122/?result=reply#message108122 http://labor-economics.org/forum/viewtopic.php?f=5&t=1705956 http://nauc.info/forums/viewtopic.php?f=3&t=15773787 http://www.school36-tambov.ru/forum/viewtopic.php?f=17&t=472899 http://labor-economics.org/forum/viewtopic.php?f=5&t=1705955 http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=137722&Itemid=194#138004 http://protee.guru/viewtopic.php?f=8&t=2536270 http://nauc.info/forums/viewtopic.php?f=3&t=15773789 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2721494 http://srdon.ru/forum/index.php?topic=7717.new#new http://nauc.info/forums/viewtopic.php?f=3&t=15773792 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=534459&sid=0b07dd476eb49c342b493a6eb8fc829b http://forum.hilfe-fuer-marco.de/news-allgemein-f64/-%D0%9F%D0%BE%D0%B2%D0%B5%D0%BB%D0%B8%D1%82%D0%B5%D0%BB%D1%8C-%D0%B4%D1%80%D0%B0%D0%BA%D0%BE%D0%BD%D0%BE%D0%B2-%E2%8E%B7-%D1%81%D0%BC%D0%BE%D1-t50677.html https://forum.latimojong.com/viewtopic.php?f=10&t=35310
    https://webboard.health.sanook.com/forum//smi_preview2.php?site=https://webboard.health.sanook.com/forum/&ID_BOARD=592&ID_TOPIC=11804482&ID_MSG=30258538 https://audiosellerz.com/forums/showthread.php?tid=175148 https://tomhuff.wordpress.com/about/?contact-form-id=2&contact-form-sent=695081&contact-form-hash=c426da521d31d5406fd89c0578178c19369e58a8&_wpnonce=7f389add7b http://weebbun.com/showthread.php?tid=214188 https://webboard.money.sanook.com/forum//smi_preview2.php?site=https://webboard.money.sanook.com/forum/&ID_BOARD=530&ID_TOPIC=11804476&ID_MSG=30258532 https://redclayyoga.org/contact/?contact-form-id=6&contact-form-sent=122809&contact-form-hash=3dec796194dbd8a17bf78b7372750e4a7d845e8d&_wpnonce=c78f2274e9 http://naturalbodybuilding.ru/ru/node/13885#comment-360909 https://www.html5videobank.com/community/showthread.php?tid=56476&pid=341725#pid341725 http://www.holistichappinessblog.com/apple-cheddar-kale-salad/?unapproved=1652864&moderation-hash=51ed60484fdc9355389dcb43cc87dab3#comment-1652864 https://ausupreme.com/mavista/cms/en/contact-us?ticket=JPLHRVMBPO1622682947567 http://forum.12sky2.online/index.php?/topic/519-stayhome-now/page/2650/#comment-1150001 https://vaporizerx.com/blu-e-cig-batteries-510-threading-possibilities/?unapproved=70789&moderation-hash=ce53df924e1bc8cc1ba2191f06cd73b6#comment-70789 https://forum.cctvtechforum.com/Thread-jftgksws https://www.heliomariano.adv.br/o-novo-bacenjud-em-5-topicos/?unapproved=190429&moderation-hash=fc42a3127b472816c13f55a6d7b36488#comment-190429 https://kaiserinsucks.lol/forums/showthread.php?tid=466988
    https://bbwhirlwind.online/viewtopic.php?f=2&t=284199 http://pooperschinzzle.xyz/viewtopic.php?f=4&t=6110 http://forum-women.ru/viewtopic.php?f=7&t=5081 https://webboard.thaibaccarat.net/index.php?topic=410745.new#new http://nauc.info/forums/viewtopic.php?f=3&t=15773793 http://nauc.info/forums/viewtopic.php?f=3&t=15773794 http://www.unraveled.net/phpbb/viewtopic.php?f=6&t=2263129 https://jimhelton.com/viewtopic.php?f=2&t=248679 https://mywork2.ru/speak/viewtopic.php?f=2&t=640612 https://lysto-forum.tue-image.nl/index.php?topic=144529.new#new http://www.mbwguitars.com/forum/viewtopic.php?f=5&t=22719 http://nauc.info/forums/viewtopic.php?f=3&t=15773795 http://www.labor-economics.org/forum/viewtopic.php?f=5&t=1705959 http://www.labor-economics.org/forum/viewtopic.php?f=5&t=1705961 http://www.unraveled.net/phpbb/viewtopic.php?f=6&t=2263131 http://protee.guru/viewtopic.php?f=8&t=2536279 http://nauc.info/forums/viewtopic.php?f=3&t=15773798 https://webboard.thaibaccarat.net/index.php?topic=410748.new#new http://www.school36-tambov.ru/forum/viewtopic.php?f=17&t=472902 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=534462&sid=da95daccfd79c0ced45658631e4ac35d http://school36-tambov.ru/forum/viewtopic.php?f=17&t=472903 https://sieuthimini.net/viewtopic.php?f=2&t=18429 http://ictopschool.one/forum/index.php/topic,213071.new.html#new http://ictopschool.one/forum/index.php/topic,213067.new.html#new https://teedinzone.com/webboard/index.php?topic=121214.new#new

Leave a Reply

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