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.

    34066857542226371891189851
    http://metr.by/object/2083398 http://remgen.ru/blog/starter-0001363112-3079177r1-81262210007-79026098-01308151-9983633-296190836-09983633-1308151#comment_445545 http://osuskeho.eu/content/5-%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%81%D0%BE%D0%B2-%D0%BD%D0%B0-%D0%BA%D0%BE%D1%82%D0%BE%D1%80%D1%8B%D0%B5-%D0%BD%D1%83%D0%B6%D0%BD%D0%BE-%D0%BE%D1%82%D0%B2%D0%B5%D1%82%D0%B8%D1%82%D1%8C-%D1%81%D0%B5%D0%B1%D0%B5-%D0%BF%D1%80%D0%B5%D0%B6%D0%B4%D0%B5-%D1%87%D0%B5%D0%BC-%D0%B2%D1%8B%D0%B9%D1%82%D0%B8-%D0%B7%D0%B0%D0%BC%D1%83%D0%B6?page=649#comment-35177 http://metr.by/object/2083403 http://naturalbodybuilding.ru/ru/node/26352#comment-365562 http://rustlandia.pl/showthread.php?tid=7831&pid=30277#pid30277 http://post.12gates.net/showthread.php?tid=350788&pid=697603#pid697603 https://rooftoppros.wordpress.com/?contact-form-id=92&contact-form-sent=958230&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=3d367bc7e2 http://www.warrenrodwell.com/2015/04/read-the-book-up-to-you/read-the-book-csp/?unapproved=38405&moderation-hash=983953f64db25bc4ff161dd947911f4d#comment-38405 https://www.html5videobank.com/community/showthread.php?tid=57531&pid=345094#pid345094 https://mybusinessconsultants.wordpress.com/?contact-form-id=329&contact-form-sent=152788&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=3733e3881c http://metr.by/object/2083399 https://www.successdigestforum.com/viewtopic.php?f=6&t=1860741 https://www.successdigestforum.com/viewtopic.php?f=6&t=1860743 https://www.successdigestforum.com/viewtopic.php?f=6&t=1860745
    http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=538309&sid=a3d9866d4535492562a81f989c99e3b5 http://myweddinglight.us/index.php/topic,13791.new.html#new http://www.onlinexmassage.com/viewtopic.php?f=56&t=100863 http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=140290&Itemid=194#140572 http://discustorming.com/viewtopic.php?f=2&t=152768 http://smartreport.tech/forum/showthread.php?tid=7827 http://www.onlinexmassage.com/viewtopic.php?f=56&t=100864 http://nauc.info/forums/viewtopic.php?f=3&t=15784081 http://wafnobi.com/comm/viewtopic.php?f=2&t=282621 http://generator.altervista.org/viewtopic.php?f=2&t=18691 http://nauc.info/forums/viewtopic.php?f=3&t=15784084 http://nauc.info/forums/viewtopic.php?f=3&t=15784088 https://forum.wdwnorth.com/viewtopic.php?f=4&t=201806 http://nauc.info/forums/viewtopic.php?f=3&t=15784089 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=474239 http://banglaforum.net/forum/viewtopic.php?f=29&t=392545 https://forum.nebula-galaxia.de/viewtopic.php?f=2&t=563171 http://nauc.info/forums/viewtopic.php?f=3&t=15784097 http://nauc.info/forums/viewtopic.php?f=3&t=15784095 https://cartschat.com/viewtopic.php?f=3&t=32135 https://bitexpert.club/viewtopic.php?f=5&t=617768 http://nauc.info/forums/viewtopic.php?f=3&t=15784104 https://jimhelton.com/viewtopic.php?f=2&t=251898 https://www.dumankayahifit.com/index.php?topic=35420.new#new http://lasertrace.nl/forum/viewtopic.php?f=6&t=1184392
    http://portfoliosuperkayra.appspot.com/1200316010 http://naturalbodybuilding.ru/ru/node/26352#comment-365563 http://pulsar-forum.pl/showthread.php?tid=230091 http://metr.by/object/2083409 http://forum.vngk.kz/showthread.php?tid=98569&pid=228995#pid228995 http://portfoliosuperkayra.appspot.com/1223286051 https://stantonmigraineprotocol.com/?contact-form-id=6&contact-form-sent=429357&contact-form-hash=42e30d9202178785fca97b3640d431531fa3216b&_wpnonce=df07b17701 http://ytubetalk.com/viewtopic.php?f=14&t=34203 http://metr.by/object/2083407 http://hsien.com.freehostia.com/viewthread.php?tid=459043&extra=page%3D1 http://metr.by/object/2083411 http://plainnuts.com/showthread.php?tid=173406 http://rustlandia.pl/showthread.php?tid=7827&pid=30279#pid30279 https://rooftoppros.wordpress.com/?contact-form-id=92&contact-form-sent=958231&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=ceb26bbe07 http://naturalbodybuilding.ru/ru/node/26352#comment-365570
    http://nauc.info/forums/viewtopic.php?f=3&t=15784098 http://nauc.info/forums/viewtopic.php?f=3&t=15784100 https://tictocbay.com/viewtopic.php?f=19&t=10609 http://www.ankarac.com/index.php/topic,80312.new.html#new http://ca.gopinball.com/forum/viewtopic.php?f=6&t=515189 http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=409496 https://mazdaclassic.cz/viewtopic.php?f=3&t=11401 http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=409495 http://forumseramik.com/viewtopic.php?f=10&t=13280 http://nauc.info/forums/viewtopic.php?f=3&t=15784115 http://nauc.info/forums/viewtopic.php?f=3&t=15784118 http://nauc.info/forums/viewtopic.php?f=3&t=15784112 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=9928&p=242090#p242090 http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=140297&Itemid=194#140579 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=474243 http://nauc.info/forums/viewtopic.php?f=3&t=15784120 http://nauc.info/forums/viewtopic.php?f=3&t=15784125 https://lasertrace.nl/forum/viewtopic.php?f=6&t=1184397 http://oleksy-bau.de/index.php/forum/welcome-mat/1021075-2021-hd#1020341 http://www.bragaburgerq.com.br/whatspedidos/forum/viewtopic.php?f=3&t=35601 https://share1s.net/viewtopic.php?f=21&t=1374657 http://smfpt2.smfpt.net/index.php/topic,96883.new.html#new http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=409500 http://thevms.net/index.php?topic=97612.new#new http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=409498

Leave a Reply

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