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.

    9185646412128881569228323216490
    http://naturalbodybuilding.ru/ru/node/26352#comment-365163 http://smartreport.tech/forum/showthread.php?tid=7575 https://suppliertynews.com/contact/?contact-form-id=3&contact-form-sent=72338&contact-form-hash=35d9cdd79d171c4ff22c7543d3323a5594b1cad2&_wpnonce=aa4e0ab851 http://www.onkenyanroads.com/showthread.php?tid=88072&pid=180557#pid180557 http://forum.vngk.kz/showthread.php?tid=98533&pid=228925#pid228925 http://pulsar-forum.pl/showthread.php?tid=230378 http://va2na.com/forum/viewtopic.php?f=2&t=185578 https://www.successdigestforum.com/viewtopic.php?f=6&t=1861716 https://kusbaz.ru/viewtopic.php?f=45&t=224412 http://metr.by/object/2083076 https://webboard.search.sanook.com/forum//smi_preview2.php?site=https://webboard.search.sanook.com/forum/&ID_BOARD=288&ID_TOPIC=11809222&ID_MSG=30263320 https://webboard.horoscope.sanook.com/forum//smi_preview2.php?site=https://webboard.horoscope.sanook.com/forum/&ID_BOARD=268&ID_TOPIC=11813122&ID_MSG=30267262 http://chippingnortonopticians.co.uk/cropped-img_4033-1-jpg/?unapproved=124308&moderation-hash=053abf5257a07cc1361f0dfaff844e50#comment-124308 https://www.nflmessageboard.com/showthread.php?tid=9355&pid=213073#pid213073 https://test.club-irbis.ru/viewtopic.php?pid=461855
    http://nauc.info/forums/viewtopic.php?f=3&t=15761831 http://www.reo14.moe.go.th/phpBB3/viewtopic.php?f=5&t=1048392 http://jdsawyer.net/forums/viewtopic.php?f=3&t=17653 https://bitcoinlove.ca/forum/viewtopic.php?f=3&t=12877 http://www.mbwguitars.com/forum/viewtopic.php?f=5&t=21296 http://labor-economics.org/forum/viewtopic.php?f=5&t=1703805 http://www.bragaburgerq.com.br/whatspedidos/forum/viewtopic.php?f=3&t=34618 http://protee.guru/viewtopic.php?f=8&t=2520954 https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=384433 https://krugozorov.ru/forum/messages/forum1/topic1/message332475/?result=reply#message332475 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=532385&sid=df617a2c3be37278953ea1cc68700fcc http://lindner-essen.de/forum/viewtopic.php?f=3&t=2442903 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2720033 https://watchmoviesonlinenow.org/index.php/topic,26005.new.html#new http://philippe.payro.free.fr/forum/viewtopic.php?f=2&t=141465 http://club66s.com/forum/viewtopic.php?f=2&t=259876 http://nauc.info/forums/viewtopic.php?f=3&t=15753272 http://labor-economics.org/forum/viewtopic.php?f=5&t=1701781 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=532618&sid=b87f55e636680068cb346fb06aaee7fd http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=528615&sid=b24c1fe6a01afae7a7715e9082a26269 http://estetikvediyet.com/viewtopic.php?f=8&t=363062 http://club66s.com/forum/viewtopic.php?f=2&t=258895 https://bestrunar.com/board/index.php?topic=22195.new#new https://forum168.com/index.php?topic=7291.new#new http://protee.guru/viewtopic.php?f=8&t=2515879
    http://forum.vp-net.ro/showthread.php?tid=9624&pid=44340#pid44340 http://naturalbodybuilding.ru/ru/node/13885#comment-360326 http://alazharelectware.com/index.php?option=com_kunena&view=topic&catid=2&id=935531&Itemid=314#935468 http://ytubetalk.com/viewtopic.php?f=14&t=34099 http://naturalbodybuilding.ru/ru/node/26352#comment-364700 http://xn--80ajgfwchmneec5bzj.xn--p1ai/index.php/classifieds/automotive/ad/dhafx,154172 https://balanching.wordpress.com/?contact-form-id=190064&contact-form-sent=374163&_wpnonce=31d4779cda&contact-form-hash=3dec796194dbd8a17bf78b7372750e4a7d845e8d http://hsien.com.freehostia.com/viewthread.php?tid=458869&extra=page%3D1 http://auto-multimedia.com/viewtopic.php?f=14&t=4583 http://www.ggevaluations.com/forum/showthread.php?tid=216623 http://arika.s6.xrea.com/oheya/cgi-bin/db13/dicebbs.cgi http://porthkerris.com/forum/viewtopic.php?f=7&t=689036 https://lsnn.mik3nl.com/index.php?/topic/31706-pnyvjlzy/ https://www.successdigestforum.com/viewtopic.php?f=10&t=37954&p=3311565#p3311565 https://vaporizerx.com/blu-e-cig-batteries-510-threading-possibilities/?unapproved=70857&moderation-hash=cb4a36c0db157515bded2bed75e83d01#comment-70857
    http://www.wafnobi.com/comm/viewtopic.php?f=2&t=278663 http://gaycommunity.vip/viewtopic.php?f=9&t=8563 http://lindner-essen.de/forum/viewtopic.php?f=3&t=2445243 http://www.tekmonkey.us/index.php?topic=18951.new#new http://nauc.info/forums/viewtopic.php?f=3&t=15766795 https://www.emrald.de/forum/viewtopic.php?f=3&t=817678 http://nauc.info/forums/viewtopic.php?f=3&t=15753206 http://users.atw.hu/videocsacska/viewtopic.php?p=260005#260005 http://nauc.info/forums/viewtopic.php?f=3&t=15758257 http://thevms.net/index.php?topic=96129.new#new http://nauc.info/forums/viewtopic.php?f=3&t=15762630 http://cyberweb.pt/viewtopic.php?f=16&t=67225 https://webboard.thaibaccarat.net/index.php?topic=405065.new#new http://labor-economics.org/forum/viewtopic.php?f=5&t=1704288 http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=404609 http://nauc.info/forums/viewtopic.php?f=3&t=15760767 http://nauc.info/forums/viewtopic.php?f=3&t=15768493 http://skyscapelive.com/viewtopic.php?f=8&t=11325 http://www.lovebird.it/index.php/forum/gatti/130647-2021-hd-720#673476 https://www.scmgw.de/phpBB3/viewtopic.php?f=24&t=86803 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=532805&sid=7d97caf9cfdf76d211a6f662fa22c847 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=530330&sid=30339f584f58667fff6452f2e8a17ef3 http://forum-women.ru/viewtopic.php?f=7&t=4810 http://labor-economics.org/forum/viewtopic.php?f=5&t=1701878 https://bironi.ru/forum/messages/forum1/topic9/message430742/?result=reply#message430742

Leave a Reply

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