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.

    85914581452226375099889060
    https://webboard.hitech.sanook.com/forum//smi_preview2.php?site=https://webboard.hitech.sanook.com/forum/&ID_BOARD=192&ID_TOPIC=11803630&ID_MSG=30257674 http://naturalbodybuilding.ru/ru/node/13885#comment-360313 https://redclayyoga.org/contact/?contact-form-id=6&contact-form-sent=122794&contact-form-hash=3dec796194dbd8a17bf78b7372750e4a7d845e8d&_wpnonce=c793e501fe https://www.successdigestforum.com/viewtopic.php?f=6&t=1855976 https://www.successdigestforum.com/viewtopic.php?f=6&t=1855975 https://www.successdigestforum.com/viewtopic.php?f=6&t=1855980 https://www.successdigestforum.com/viewtopic.php?f=6&t=1855979 https://www.successdigestforum.com/viewtopic.php?f=6&t=1855982 http://gamingrev.com/2010/06/02/forum-is-back-online/?unapproved=68367&moderation-hash=4ad80037ed532e9b39242927a859ff90#comment-68367 http://post.12gates.net/showthread.php?tid=348894&pid=693964#pid693964 http://naturalbodybuilding.ru/ru/node/13885#comment-360314 https://forum.cctvtechforum.com/Thread-dkcgksbc http://periodicomicasa.com.mx/periodico-mi-casa-enero-2017/?unapproved=26774&moderation-hash=73f06428703d17078adb1fc60aa55690#comment-26774 http://naturalbodybuilding.ru/ru/node/13885#comment-360320 http://ngoinhachung.net/diendan/forum.php?mod=viewthread&tid=2435561&pid=5316118&page=7172&extra=#pid5316118
    http://cyberweb.pt/viewtopic.php?f=16&t=40398 https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=338242 http://roadragenz.com/forum/viewtopic.php?f=27&t=1109131 http://gopinball.com/forum/viewtopic.php?f=6&t=482566 http://hker.live/viewtopic.php?f=4&t=529790 https://logoushka.ru/viewtopic.php?f=5&t=10176 http://www.myacnestory.sg/forum/viewtopic.php?f=6&t=7902 http://www.kinderwunsch-forum.com/thread.php?threadid=116352&sid=f9165562268049ac0bc0cc56a323755a https://bestrunar.com/board/index.php?topic=8795.new#new https://austral-fantasy.ucoz.ru/forum/2-47-13#20864 https://cartschat.com/viewtopic.php?f=3&t=14497 https://webboard.thaibaccarat.net/index.php?topic=345292.new#new https://traveldiscussions.com/viewtopic.php?f=8&t=71133 http://grassrootsforum.info/viewtopic.php?f=3&t=20474 https://forum.rioforense.com.br/showthread.php?tid=2808 https://bitcoinlove.ca/forum/viewtopic.php?f=3&t=6749 http://forum.kopkon.ru/viewtopic.php?f=1&t=14572 http://hiso.club/viewtopic.php?f=12&t=31842 http://smfpt2.smfpt.net/index.php/topic,71797.new.html#new https://essens-club.ru/viewtopic.php?f=13&t=5280 http://intersavegame.co.uk/phpBB/viewtopic.php?f=3&t=1909342 https://krugozorov.ru/forum/messages/forum1/topic1/message298455/?result=reply#message298455 https://traveldiscussions.com/viewtopic.php?f=8&t=71139 https://bironi.ru/forum/messages/forum1/topic9/message398875/?result=reply#message398875 https://teedinzone.com/webboard/index.php?topic=81643.new#new
    http://naturalbodybuilding.ru/ru/node/13885#comment-360315 https://www.heliomariano.adv.br/o-novo-bacenjud-em-5-topicos/?unapproved=190411&moderation-hash=55df65eba0a55e20f8e03d7efe5bcb7d#comment-190411 http://naturalbodybuilding.ru/ru/node/13885#comment-360318 http://naturalbodybuilding.ru/ru/node/13885#comment-360316 https://www.hercommonthread.com/2019/02/04/a-new-chapter/?unapproved=127935&moderation-hash=a7c1d426f4310359c6da08f3784a7b26#comment-127935 https://www.hercommonthread.com/2019/02/04/a-new-chapter/?unapproved=127936&moderation-hash=a2b4fcc5000ad7331086c0ebf2a04152#comment-127936 http://tankcleaner.net/blog/2018/04/07/dioctyl-phthalate-dop-manuafacturer-and-supplier-india-middle-eastuae-singapore?page=2107#comment-105929 http://melevistas.com/viewtopic.php?f=4&t=84102&p=3111798#p3111798 https://www.successdigestforum.com/viewtopic.php?f=6&t=440432&p=3306981#p3306981 http://elpregonero.mx/math-problem-solving-activities-pinterest/?unapproved=1574585&moderation-hash=fabfde300fa3f068f2b1528b1df6bbc6#comment-1574585 http://elpregonero.mx/math-problem-solving-activities-pinterest/?unapproved=1574584&moderation-hash=8be35338dd965c138908d40823687037#comment-1574584 http://xn--80ajgfwchmneec5bzj.xn--p1ai/index.php/classifieds/automotive/ad/dhafx,153959 http://shotsports.com/jump-shot-basketball-games/comment-page-2768/#comment-2359669 http://shotsports.com/jump-shot-basketball-games/comment-page-2768/#comment-2359671 http://alazharelectware.com/index.php?option=com_kunena&view=topic&catid=2&id=935120&Itemid=314#935057
    https://krugozorov.ru/forum/messages/forum1/topic1/message298457/?result=reply#message298457 https://teedinzone.com/webboard/index.php?topic=81648.new#new http://forum.hilfe-fuer-marco.de/news-allgemein-f64/%C2%AB%D0%A2%D1%80%D0%BE%D0%BB%D1%96-2-%D0%A1%D0%B2%D1%96%D1%82%D0%BE%D0%B2%D0%B8%D0%B9-%D1%82%D1%83%D1%80-%C2%BB-%EA%82%B9-%D1%81%D0%BC-t48530.html http://vilia.it/index.php/forum/welcome-mat/131166-2021#131049 https://webboard.thaibaccarat.net/index.php?topic=345303.new#new http://protee.guru/viewtopic.php?f=8&t=2352174 http://ictopschool.one/forum/index.php/topic,150561.new.html#new https://www.fxforecasting.com/viewtopic.php?f=5&t=9935 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2699871 http://gaycommunity.vip/viewtopic.php?f=9&t=4100 http://savevernazza.com/forum/?mingleforumaction=viewtopic&t=593745#postid-323086 http://estetikvediyet.com/viewtopic.php?f=8&t=309940 http://kriptoturkiye.org/viewtopic.php?f=34&t=9009 http://contriman.com/showthread.php?tid=151897 http://forumdesmonrp.geliland.com/showthread.php?tid=29162&pid=36898#pid36898 http://lamban.xyz/viewtopic.php?f=5&t=4283 https://ufarms.ru/viewtopic.php?f=3&t=5483 http://banglaforum.net/forum/viewtopic.php?f=29&t=378511 https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=338253 https://watchmoviesonlinenow.org/index.php/topic,6045.new.html#new http://forumseramik.com/viewtopic.php?f=10&t=5155 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?p=213218 https://mazdaclassic.cz/viewtopic.php?f=3&t=4874 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=53371 https://paybackking.com/forum/viewtopic.php?f=8&t=8494

Leave a Reply

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