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.

    80046949222637379790231
    https://forum.cctvtechforum.com/Thread-nyehdqnd https://www.successdigestforum.com/viewtopic.php?f=6&t=1859844 https://www.successdigestforum.com/viewtopic.php?f=6&t=1859840 http://ru.evbud.com/projects/2872224/ http://metr.by/object/2082327 https://noblenetworks.co.uk/showthread.php?tid=6598 http://metr.by/object/2082315 http://metr.by/object/2082334 http://metr.by/object/2082326 http://sexnzb.com/teonnjrl-t601644.html https://valgemetsa.eu/gallery/pildid/?unapproved=15354&moderation-hash=462ea477b80be43ee94b0b2805912854#comment-15354 http://portfoliosuperkayra.appspot.com/1197776512 https://www.successdigestforum.com/viewtopic.php?f=6&t=1859859 https://www.html5videobank.com/community/showthread.php?tid=57345&pid=344535#pid344535 http://prozon.org.pl/forum/viewtopic.php?pid=69615#p69615
    https://sharecovid19story.com/viewtopic.php?f=19&t=42505 http://palais.beesims.com/phpbb/viewtopic.php?f=4&t=86855 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=530927&sid=8a5b3a979efabaaf20d9c393d6f88009 https://tfa-sl.com/viewtopic.php?f=9&t=30337 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=530928&sid=0f1514e3f169ca5220f4c94feae2de16 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2720025 https://jimhelton.com/viewtopic.php?f=2&t=244616 https://tg-dst.ru/forum/messages/forum1/topic15/message106759/?result=reply#message106759 http://www.mbwguitars.com/forum/viewtopic.php?f=5&t=22067 http://www.school36-tambov.ru/forum/viewtopic.php?f=17&t=471689 http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=134916&Itemid=194#135198 http://protee.guru/viewtopic.php?f=8&t=2525345 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=530931&sid=b83b32e7222d1da0a431a5c71eb087c5 https://bironi.ru/forum/messages/forum1/topic9/message431000/?result=reply#message431000 http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=134917&Itemid=194#135199 https://webboard.thaibaccarat.net/index.php?topic=407645.new#new http://cyberweb.pt/viewtopic.php?f=16&t=68497 https://forum.latimojong.com/viewtopic.php?f=10&t=34815 https://sieuthimini.net/viewtopic.php?f=2&t=17612 http://www.ankarac.com/index.php/topic,75914.new.html#new http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2720021 http://www.blenderturkiye.com/viewtopic.php?f=13&t=942098 http://rznklad.ru/viewtopic.php?f=26&t=78918 https://medalladehonor.cl/foro/index.php?/topic/593371-%D0%BF%D0%BE%D0%BB%D0%BD%D0%BE%D0%B5-%D0%BF%D0%BE%D0%B3%D1%80%D1%83%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5-%E2%A8%99-%D0%BE%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD-%D0%BF%D0%BE%D0%BB%D0%BD%D0%BE%D0%B5-%D0%BF%D0%BE%D0%B3%D1%80%D1%83%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5-%D0%BC%D1%83%D0%BB%D1%8C%D1%82%D1%84%D0%B8%D0%BB%D1%8C%D0%BC-2021-%D0%B3%D0%BE%D0%B4%D0%B0-%D0%BE%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD-%D0%BD%D0%B0-%D0%B0%D0%B9%D0%BF%D0%B0%D0%B4/ http://www.melevistas.com/viewtopic.php?f=3&t=1861698
    https://lsnn.mik3nl.com/index.php?/topic/31430-hulnqtep/ https://www.hispawno.com/showthread.php?tid=79466 https://cp77forum.com/showthread.php?tid=53864&pid=107082#pid107082 http://metr.by/object/2082331 https://webboard.music.sanook.com/forum//smi_preview2.php?site=https://webboard.music.sanook.com/forum/&ID_BOARD=351&ID_TOPIC=11809336&ID_MSG=30263434 https://mobililenakit.com/showthread.php?tid=13826 https://jeffreykett.wordpress.com/?contact-form-id=188&contact-form-sent=309376&contact-form-hash=c4849295e98b75433412d5073a3177e534e47aba&_wpnonce=fc3e4066eb https://redjester.org/forums/showthread.php?tid=30524 https://www.nflmessageboard.com/showthread.php?tid=9355&pid=212920#pid212920 http://nvrzone.com/ru/forum/topic/17304?page=280#comment-1944639 http://forum.naronanews.com/showthread.php?tid=163989&pid=476128#pid476128 https://eraoflight.com/forum/?contact-form-id=widget-custom_html-30&contact-form-sent=269980&contact-form-hash=a1cbfc0ba18ffe5ea561bb4912566cea912d559e&_wpnonce=b54cb6f637 http://naturalbodybuilding.ru/ru/node/26352#comment-364628 http://www.onkenyanroads.com/showthread.php?tid=88125&pid=180653#pid180653 http://naturalbodybuilding.ru/ru/node/26352#comment-364629
    http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=405468 http://labor-economics.org/forum/viewtopic.php?f=5&t=1704121 http://labor-economics.org/forum/viewtopic.php?f=5&t=1704123 http://lindner-essen.de/forum/viewtopic.php?f=3&t=2445858 http://lindner-essen.de/forum/viewtopic.php?f=3&t=2445860 http://lindner-essen.de/forum/viewtopic.php?f=3&t=2445862 http://lindner-essen.de/forum/viewtopic.php?f=3&t=2445864 http://lindner-essen.de/forum/viewtopic.php?f=3&t=2445863 http://labor-economics.org/forum/viewtopic.php?f=5&t=1704124 http://nauc.info/forums/viewtopic.php?f=3&t=15764302 http://nauc.info/forums/viewtopic.php?f=3&t=15764305 http://www.unraveled.net/phpbb/viewtopic.php?f=6&t=2258992 https://forum.nebula-galaxia.de/viewtopic.php?f=2&t=558541 http://srdon.ru/forum/index.php?topic=7342.new#new http://nauc.info/forums/viewtopic.php?f=3&t=15764310 http://pooperschinzzle.xyz/viewtopic.php?f=4&t=5805 https://lysto-forum.tue-image.nl/index.php?topic=144305.new#new http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=10633&p=238812#p238812 http://nauc.info/forums/viewtopic.php?f=3&t=15764312 http://www.labor-economics.org/forum/viewtopic.php?f=5&t=1704125 http://forum-women.ru/viewtopic.php?f=7&t=4901 http://nauc.info/forums/viewtopic.php?f=3&t=15764313 http://nauc.info/forums/viewtopic.php?f=3&t=15764311 http://www.labor-economics.org/forum/viewtopic.php?f=5&t=1704126 http://protee.guru/viewtopic.php?f=8&t=2525350

Leave a Reply

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