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.

    32378889592226378337085607
    http://pulsar-forum.pl/showthread.php?tid=226890 https://valgemetsa.eu/gallery/pildid/?unapproved=15081&moderation-hash=ec62df2afeead66bed1910ef3130b92f#comment-15081 http://xn—–7kcaojafiiehq7albibt1a4be.xn--p1ai/blog/kak-proverit-ostrotu-nozha#comment_361916 http://forum.dahouse.ir/thread-5228.html http://va2na.com/forum/viewtopic.php?f=2&t=185049 http://metr.by/object/2076185 http://www.forum.jamran-extreme.com/showthread.php?tid=8860 https://lsnn.mik3nl.com/index.php?/topic/30816-gfisasyo/ http://kuko-forum.name/thread-6459.html http://avaya.newsystems.ru/forum/messages/forum1/topic213582/message230898/?result=new https://valgemetsa.eu/gallery/pildid/?unapproved=15082&moderation-hash=2b47963f96cb03c55c4c19474ecade9e#comment-15082 http://metr.by/object/2076187 https://shortcels.co/index.php?/topic/137719-auiygzzi/ http://www.diegodicamillo.com.ar/blog/2010/01/29/cant-create-a-new-thread-errno-12-if-you-are-not-out-of-available-memory-you-can-consult-the-manual-for-a-possible-os-dependent-bug/comment-page-1/?unapproved=768436&moderation-hash=ef5188212235ab7604b4b511c463131c#comment-768436 http://naturalbodybuilding.ru/ru/node/13885?page=11#comment-359103
    http://skyscapelive.com/viewtopic.php?f=8&t=5788 http://forum.vkportal.ba/viewtopic.php?f=17&t=1150&p=27182#p27182 http://protee.guru/viewtopic.php?f=8&t=2337017 http://www.unraveled.net/phpbb/viewtopic.php?f=6&t=2195712 http://www.reo14.moe.go.th/phpBB3/viewtopic.php?f=6&t=984824 http://abc.hiso.club/viewtopic.php?f=12&t=30702&p=48362#p48362 http://discustorming.com/viewtopic.php?f=2&t=112848 http://protee.guru/viewtopic.php?f=8&t=2337019 http://67.205.147.96/viewtopic.php?f=2&t=27443 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=10633&p=211732#p211732 https://bbwhirlwind.online/viewtopic.php?f=2&t=234886 https://tg-dst.ru/forum/messages/forum1/topic15/message81487/?result=reply#message81487 http://kuko-forum.name/thread-3879.html http://weebbun.com/showthread.php?tid=182643 https://echokirova.ru/forum/messages/forum4/topic108299/message239698/?result=reply#message239698 http://kuko-forum.name/thread-3880.html http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=362586 http://melevistas.com/viewtopic.php?f=4&t=117826&p=2942030#p2942030 http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=93188&Itemid=194#93140 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=10633&p=211730#p211730 https://logoushka.ru/viewtopic.php?f=5&t=9687 https://essens-club.ru/viewtopic.php?f=13&t=4712 http://users.atw.hu/videocsacska/viewtopic.php?p=254556#254556 https://www.fxforecasting.com/viewtopic.php?f=5&t=9263 http://swiadomyprojektant.pl/forum/viewtopic.php?f=23&t=4043
    http://naturalbodybuilding.ru/ru/node/13885?page=11#comment-359104 http://www.chopchopmoocs.com/topic-5-observation-analogy/?unapproved=78040&moderation-hash=55958448a4674e7163ada00ec74c4c2d#comment-78040 http://forumturystyka.pl/showthread.php?tid=4539 https://52.78.224.240/viewtopic.php?f=33&t=41537 http://ntumatch.com/forum.php?mod=viewthread&tid=388607&extra= http://naturalbodybuilding.ru/ru/node/13885?page=11#comment-359105 http://www.blog.adventuria.in/travelforum/topic/crcjulxc/#postid-4662 https://www.kahawatungu.com/contact-us/?contact-form-id=202&contact-form-sent=176958&contact-form-hash=fa83a8d0c292f6b4f9e3738f13972e1141fa1d6e&_wpnonce=fdbd939f1d http://naturalbodybuilding.ru/ru/node/13885?page=11#comment-359106 http://metr.by/object/2076192 http://nvrzone.com/ru/forum/topic/17304?page=277#comment-1942633 https://www.djangoboards.com/boards/1/topics/259377/ https://mobililenakit.com/showthread.php?tid=13553 http://weebbun.com/showthread.php?tid=213409 http://cvt-portal.ru/showthread.php?tid=25063&pid=133034#pid133034
    https://www.rustlandgermany.de/viewtopic.php?f=7&t=19455 http://odinofficial.com/forums/viewtopic.php?f=8&t=3315 http://www.tekmonkey.us/index.php?topic=8246.new#new http://cyberweb.pt/viewtopic.php?f=16&t=38072 http://awhole.com/forum/viewtopic.php?f=7&t=89100 http://grassrootsforum.info/viewtopic.php?f=3&t=19679 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=10633&p=211729#p211729 http://discustorming.com/viewtopic.php?f=2&t=112849 http://www.inforbarget.fr/forum/viewtopic.php?f=20&t=37349 https://bestrunar.com/board/index.php?topic=7781.new#new http://www.division-gaming.net/test2000/index.php/forum/2-welcome-mat/3097660-2021-hd#3097660 https://pluginhut.com/showthread.php?tid=28123 http://sound-book.net/viewtopic.php?f=5&t=25869 http://www.cactusmountainrp.com/viewtopic.php?f=5&t=51646 http://cyberweb.pt/viewtopic.php?f=3&t=38073 http://theamazonlegacy.com/phpBB3/viewtopic.php?f=8&t=132161 http://zk-balt.ru/viewtopic.php?f=1&t=7637 http://www.mbwguitars.com/forum/viewtopic.php?f=5&t=4512 https://shortcels.co/index.php?/topic/131645-%C2%AB%D1%87%D1%83%D0%B4%D0%BE-%D0%BA%D1%83%D1%80%D0%B8%D1%86%D0%B0-%C2%BB-%EA%87%90-%D0%BE%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD-%D1%81%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C-%D1%87%D1%83%D0%B4%D0%BE-%D0%BA%D1%83%D1%80%D0%B8%D1%86%D0%B0-%D0%BC%D1%83%D0%BB%D1%8C%D1%82%D0%B8%D0%BA-2021-%D0%BE%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD-%D1%81%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C-%D0%B2-%D0%BA%D0%B0%D1%87%D0%B5%D1%81%D1%82%D0%B2%D0%B5-hd-1080/ http://post.12gates.net/showthread.php?tid=321708&pid=644917#pid644917 https://austral-fantasy.ucoz.ru/forum/2-48-22#20844 http://ictopschool.one/forum/index.php/topic,143903.new.html#new http://www.tekmonkey.us/index.php?topic=8247.new#new http://discustorming.com/viewtopic.php?f=2&t=112854 http://www.reo14.moe.go.th/phpBB3/viewtopic.php?f=6&t=984966

Leave a Reply

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