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.

    51340266202226376083986062
    http://iamgalla.com/2012/10/galla-takes-colorado-1/?unapproved=8945816&moderation-hash=739fcb3b668deeb02ffc709aa7e2c691#comment-8945816 http://theauctionboard.com/showthread.php?tid=874872 http://193167.kharkovf.web.hosting-test.net/viewtopic.php?f=11&t=290257 http://pregnancytracker.net/forum/index.php?topic=45903.new#new http://diagnost.ee/pood/attachment/_13/?unapproved=208549&moderation-hash=fd618a828efcd251a773edcc4998cedd#comment-208549 http://pregnancytracker.net/forum/index.php?topic=45904.new#new http://pastebin.calculate-linux.org/en/show/184687 http://naturalbodybuilding.ru/ru/node/19130#comment-330964 http://naturalbodybuilding.ru/ru/node/19130#comment-330965 http://metr.by/object/2021169 http://kharkovforum.com.ua/viewtopic.php?f=11&t=290258 http://naturalbodybuilding.ru/ru/node/19130#comment-330966 http://metr.by/object/2021164 http://naturalbodybuilding.ru/ru/node/19130#comment-330968 http://sexnzb.com/pqzggvog-t593284.html http://diagnost.ee/pood/attachment/_13/?unapproved=208551&moderation-hash=0e15f249f50a7a9f186a8af0e10419ce#comment-208551 http://naturalbodybuilding.ru/ru/node/19130#comment-330969 http://metr.by/object/2021157 http://metr.by/object/2021174 http://metr.by/object/2021159 http://www.rebels-softair.it/forum2/viewtopic.php?f=3&t=146498 http://metr.by/object/2021171 http://naturalbodybuilding.ru/ru/node/19130#comment-330972 http://realrawtruths.com/2016/03/hot-topic_-the-power-of-the-human-spirit/?unapproved=258594&moderation-hash=1a8d990b406395bd188bd38f356089a8#comment-258594 https://www.kahawatungu.com/contact-us/?contact-form-id=202&contact-form-sent=175393&contact-form-hash=fa83a8d0c292f6b4f9e3738f13972e1141fa1d6e&_wpnonce=e7a09cabda
    https://mazdaclassic.cz/viewtopic.php?f=3&t=3395 https://essens-club.ru/viewtopic.php?f=13&t=3700 http://zk-balt.ru/viewtopic.php?f=1&t=5512 http://gaycommunity.vip/viewtopic.php?f=9&t=2674 http://conternative.com/showthread.php?tid=15669 https://www.covidforum.cz/viewtopic.php?f=10&t=871 https://ufarms.ru/viewtopic.php?f=3&t=3667 http://turbosquad.eu/viewtopic.php?f=26&t=3960 https://localfishingchat.com/thread-94690.html https://www.html5videobank.com/community/showthread.php?tid=37402&pid=256595#pid256595 http://avaya.newsystems.ru/forum/messages/forum1/topic185899/message196692/?result=new http://leerooke.co.uk/viewtopic.php?f=3&t=4994 https://mobililenakit.com/showthread.php?tid=7096 http://q8c.net/viewtopic.php?f=2&t=2760 http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=87566&Itemid=194#87551 http://protee.guru/viewtopic.php?f=8&t=2287207 https://ireallylikeyou.com/viewtopic.php?f=6&t=4210 http://madisonsongwriterscircle.com/viewtopic.php?f=5&t=72499 http://www.lovebird.it/index.php/forum/roditori/80075-online-2021-1080#622936 http://vilia.it/index.php/forum/welcome-mat/124723-2021#124609 https://lsfd.ao-rp.com/viewtopic.php?f=10&t=20971 http://www.lovebird.it/index.php/forum/inseparabili/80076-2021-hd-1080#622937 http://www.myacnestory.sg/forum/viewtopic.php?f=6&t=5441 https://forum.btcpbrand.com/viewtopic.php?f=4&t=981464 http://www.s-server.vip/viewtopic.php?f=1&t=171405&p=823124#p823124
    http://theartsglobetrotter.com/2015/09/jeff-koonss-sculpture-installed-in-florence-jeff-koons-installa-una-sua-scultura-a-firenze/?unapproved=76225&moderation-hash=a4d3cc70388f2bbdce57a0f808f0727e#comment-76225 http://193167.kharkovf.web.hosting-test.net/viewtopic.php?f=11&t=290259 http://www.warrenrodwell.com/2015/04/read-the-book-up-to-you/read-the-book-csp/?unapproved=35723&moderation-hash=e6d07e3f75ef80b63e926b5cccd3c36d#comment-35723 https://mybusinessconsultants.wordpress.com/?contact-form-id=329&contact-form-sent=151861&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=2eb42ae59e http://www.anstiss.com/?contact-form-id=widget-text-9&contact-form-sent=308413&contact-form-hash=226da66c92c2bee8af63abc8086fc7e635d09b21&_wpnonce=217ab9e04c http://archaeopteryxonline.com/content/contemporary-music-and-sublime?page=2630#comment-256179 http://kafferecept.se/recipe/chai-latte/?unapproved=839595&moderation-hash=bc9be3907e3559f878b93f54fa38f990#comment-839595 https://www.successdigestforum.com/viewtopic.php?f=11&t=15186&p=3214867#p3214867 https://rawsugarstudio.com/2015/09/arlo-guthrie-coming-to-lorain-palace-october-3rd/?unapproved=231313&moderation-hash=0b38fd41f55a6eb05ef7915c2f7fc085#comment-231313 http://metr.by/object/2021179 http://metr.by/object/2021176 http://arika.s6.xrea.com/oheya/cgi-bin/db13/dicebbs.cgi http://naturalbodybuilding.ru/ru/node/19130#comment-330973 http://metr.by/object/2021194 https://mybusinessconsultants.wordpress.com/?contact-form-id=329&contact-form-sent=151862&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=5c7d3e1a2f
    https://krugozorov.ru/forum/messages/forum1/topic1/message285007/?result=reply#message285007 https://www.chasse-peche.fr/viewtopic.php?f=5&t=977780 https://roqstech.de/viewtopic.php?p=2589074 https://www.roqstech.de/viewtopic.php?f=4&t=1397348&p=2589123#p2589123 http://nauc.info/forums/viewtopic.php?f=3&t=15602752 https://forum.prasinoi.eu/viewtopic.php?f=19&t=897133 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=438985 https://forum.uhleague.ru/viewtopic.php?f=14&t=11229 http://ca.gopinball.com/forum/viewtopic.php?f=6&t=455979 http://ictopschool.one/forum/index.php/topic,129806.new.html#new http://trudixcrs.com/viewtopic.php?f=5&t=3533 https://mazdaclassic.cz/viewtopic.php?f=3&t=3396 http://nauc.info/forums/viewtopic.php?f=3&t=15602753 http://forum.vkportal.ba/viewtopic.php?f=17&t=1150&p=24784#p24784 http://pakimmigration.com/viewtopic.php?f=12&t=3798 http://forum.cyber-riders.de/viewtopic.php?f=38&t=10388 http://israelidebate.com/opinions/viewtopic.php?f=3&t=1167047 http://kinomozg.club/topic/127-mail-addurl/?page=5905#comment-114484 http://nauc.info/forums/viewtopic.php?f=3&t=15602755 http://q8c.net/viewtopic.php?f=2&t=2761 https://teedinzone.com/webboard/index.php?topic=71937.new#new https://www.bountytalk.org/index.php?topic=20408.new#new http://staycationinthe.uk/viewtopic.php?f=11&t=9334 https://wtcs.rocks/wtcsforum/showthread.php?tid=2194 http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=87572&Itemid=194#87557

Leave a Reply

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