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.

    3468599999222637331435403
    http://kuko-forum.name/thread-6636.html http://ru.evbud.com/projects/2871541/ http://metr.by/object/2078898 http://metr.by/object/2078904 http://metr.by/object/2078907 http://forum.naronanews.com/showthread.php?tid=163743&pid=475064#pid475064 https://pro-area.info/showthread.php?tid=7164&pid=9736#pid9736 http://pulsar-forum.pl/showthread.php?tid=228081 http://forumturystyka.pl/showthread.php?tid=4659 https://www.source-forum.com/showthread.php?tid=159817 http://post.12gates.net/showthread.php?tid=349291&pid=694729#pid694729 http://metr.by/object/2078913 http://cvt-portal.ru/showthread.php?tid=38875&pid=133595#pid133595 https://www.source-forum.com/showthread.php?tid=159818 http://forum.naronanews.com/showthread.php?tid=163743&pid=475065#pid475065
    http://www.unraveled.net/phpbb/viewtopic.php?f=6&t=2196582 https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=333545 http://zk-balt.ru/viewtopic.php?f=1&t=8361 http://calvarychapeljoco.com/new/index.php/forum/welcome-mat/1203309-2021#1203277 https://watchmoviesonlinenow.org/index.php/topic,5781.new.html#new http://cyberweb.pt/viewtopic.php?f=3&t=38844 https://echokirova.ru/forum/messages/forum4/topic108299/message241012/?result=reply#message241012 https://www.rustlandgermany.de/viewtopic.php?f=7&t=20002 https://soundmanclub.ru/viewtopic.php?pid=190673#p190673 http://www.inforbarget.fr/forum/viewtopic.php?f=20&t=37616 https://sieuthimini.net/viewtopic.php?f=2&t=4203 http://ictopschool.one/forum/index.php/topic,145866.new.html#new https://shortcels.co/index.php?/topic/131911-%D1%82%D0%BE%D0%BC-%D0%B8-%D0%B4%D0%B6%D0%B5%D1%80%D1%80%D0%B8-%E4%B7%A6-%D1%81%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C-%D1%82%D0%BE%D0%BC-%D0%B8-%D0%B4%D0%B6%D0%B5%D1%80%D1%80%D0%B8-%D0%BC%D1%83%D0%BB%D1%8C%D1%82%D0%B8%D0%BA-2021-%D0%B3%D0%BE%D0%B4%D0%B0-%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%B2-%D0%BA%D0%B0%D1%87%D0%B5%D1%81%D1%82%D0%B2%D0%B5/ https://ninerp.com/forums/showthread.php?tid=78428 https://www.html5videobank.com/community/showthread.php?tid=41015&pid=276742#pid276742 http://freelineskate.free.fr/forum/viewtopic.php?f=2&t=110697 https://bestrunar.com/board/index.php?topic=8271.new#new http://www.inforbarget.fr/forum/viewtopic.php?f=20&t=37615 http://www.cbr650.net/viewtopic.php?f=11&t=8766 http://oleksy-bau.de/index.php/forum/welcome-mat/978141-2021-hd#977407 https://forum.wdwnorth.com/viewtopic.php?f=4&t=163361 http://www.school36-tambov.ru/forum/viewtopic.php?f=17&t=445687 http://swiadomyprojektant.pl/forum/viewtopic.php?f=23&t=4422 http://swiadomyprojektant.pl/forum/viewtopic.php?f=23&t=4423 http://oleksy-bau.de/index.php/forum/welcome-mat/978140-2021-hd-1080#977406
    http://cafekulinarya.co.uk/?attachment_id=118&unapproved=243435&moderation-hash=86efa150fb389115cf5446e0591f9b53#comment-243435 https://sextingsite.com/viewtopic.php?f=15&t=488386 https://www.successdigestforum.com/viewtopic.php?f=6&t=1857003 http://va2na.com/forum/viewtopic.php?f=2&t=185162 http://188.165.51.17/blog/383046 http://periodicomicasa.com.mx/periodico-mi-casa-enero-2017/?unapproved=26837&moderation-hash=afcf66acb2d0f4440459b274fdd63eb1#comment-26837 https://razvodnya.ru/viewtopic.php?f=2&t=6963&p=23936#p23936 http://www.anstiss.com/?contact-form-id=widget-text-9&contact-form-sent=310886&contact-form-hash=226da66c92c2bee8af63abc8086fc7e635d09b21&_wpnonce=deba782e3c http://metr.by/object/2078912 http://forum.kraspivo.ru/viewtopic.php?f=6&t=112111 http://suiteusergroup.com/suiteforum/showthread.php?tid=112717 http://forum.vp-net.ro/showthread.php?tid=9519 https://forum.cctvtechforum.com/Thread-nikhnphy http://naturalbodybuilding.ru/ru/node/26352#comment-361523 http://metr.by/object/2078909
    http://lasertrace.nl/forum/viewtopic.php?f=6&t=1098434 http://www.wasasando.com/viewtopic.php?f=31&t=52327 http://forum.centr5.ru/viewtopic.php?f=29&t=53624 http://palais.beesims.com/phpbb/viewtopic.php?f=4&t=82365 https://tg-dst.ru/forum/messages/forum1/topic15/message82508/?result=reply#message82508 http://www.cbr650.net/viewtopic.php?f=11&t=8767 https://warlord.tech/viewtopic.php?f=1&t=21064 http://lamban.xyz/viewtopic.php?f=5&t=4208 http://67.205.147.96/viewtopic.php?f=2&t=4151&p=43958#p43958 https://clubhipico.net/club-hipico-tv/2413-5-anos-concurso-salto-de-obstaculos-nacional-final-del-ciclo-caballos-jovenes-magrama-35.html#post71825 https://webboard.thaibaccarat.net/index.php?topic=338509.new#new http://smfpt2.smfpt.net/index.php/topic,70235.new.html#new http://users.atw.hu/videocsacska/viewtopic.php?p=255111#255111 http://sfpolicedepartment.altervista.org/forum/viewtopic.php?f=2&t=13648 https://www.fxforecasting.com/viewtopic.php?f=5&t=9635 http://zk-balt.ru/viewtopic.php?f=1&t=8353 https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=333550 https://webboard.thaibaccarat.net/index.php?topic=338515.new#new http://forumseramik.com/viewtopic.php?f=10&t=5000 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=445693 http://www.inforbarget.fr/forum/viewtopic.php?f=20&t=37617 http://xn—-8sble4ao1ag1b8c.online/viewtopic.php?f=21&t=21558 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=53270&p=212772#p212772 http://intersavegame.co.uk/phpBB/viewtopic.php?f=3&t=1907431 http://67.205.147.96/viewtopic.php?f=2&t=27956

Leave a Reply

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