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.

    77914511152226379199582763
    https://www.successdigestforum.com/viewtopic.php?f=11&t=15186&p=3305647#p3305647 http://pulsar-forum.pl/showthread.php?tid=227115 http://metr.by/object/2076589 http://metr.by/object/2076588 http://www.forum.lezajsk.pl/showthread.php?tid=6559 https://mybusinessconsultants.wordpress.com/?contact-form-id=329&contact-form-sent=152643&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=928e3f80c1 http://hsien.com.freehostia.com/viewthread.php?tid=458772&extra=page%3D1 http://metr.by/object/2076591 https://kusbaz.ru/viewtopic.php?f=45&t=223820 http://prozon.org.pl/forum/viewtopic.php?pid=69416#p69416 http://cnggaming.com/CNGForum/viewtopic.php?f=7&t=30960 http://amygibbs.co.uk/print-quote-request/?contact-form-id=84&contact-form-sent=166528&contact-form-hash=3d9118dc83eac0b0223b0f8c58630814c8e97b6b&_wpnonce=5e55558a52 http://metr.by/object/2076587 https://webboard.women.sanook.com/forum//smi_preview2.php?site=https://webboard.women.sanook.com/forum/&ID_BOARD=75&ID_TOPIC=11802310&ID_MSG=30256348 http://mbrito.uosdesigndegrees.com/mybb/showthread.php?tid=750364
    https://krugozorov.ru/forum/messages/forum1/topic1/message286411/?result=reply#message286411 https://therockandduckshow.net/showthread.php?tid=71671 https://essens-club.ru/viewtopic.php?f=13&t=3889 http://www.wasasando.com/viewtopic.php?f=31&t=51503 https://shortcels.co/index.php?/topic/130743-%C2%AB%D0%B0%D0%BA%D0%B0%D0%B4%D0%B5%D0%BC%D0%B8%D1%8F-%D0%BC%D0%BE%D0%BD%D1%81%D1%82%D1%80%D0%BE%D0%B2-%C2%BB-%E1%9A%95-%D0%BE%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD-%D0%B0%D0%BA%D0%B0%D0%B4%D0%B5%D0%BC%D0%B8%D1%8F-%D0%BC%D0%BE%D0%BD%D1%81%D1%82%D1%80%D0%BE%D0%B2-%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-%D1%81%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C-%D0%BE%D0%B7%D0%B2%D1%83%D1%87%D0%BA%D0%B0/ https://www.html5videobank.com/community/showthread.php?tid=38014 http://ictopschool.one/forum/index.php/topic,132177.new.html#new http://hker.live/viewtopic.php?f=4&t=516391 https://teedinzone.com/webboard/index.php?topic=73051.new#new https://forum168.com/index.php?topic=3128.new#new http://www.kinderwunsch-forum.com/thread.php?threadid=115203&sid=e6fb638c4f6110e716ae76d0851eca89 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2690848 https://paybackking.com/forum/viewtopic.php?f=8&t=6158 http://israelidebate.com/opinions/viewtopic.php?f=3&t=1184789 http://www.tekmonkey.us/index.php?topic=6266.new#new http://philippe.payro.free.fr/forum/viewtopic.php?f=2&t=109668 http://forumseramik.com/viewtopic.php?f=10&t=3576 http://banglaforum.net/forum/viewtopic.php?f=29&t=374094 http://svrsps.com/viewtopic.php?f=7&t=69462 https://cartschat.com/viewtopic.php?f=3&t=9580 http://freelineskate.free.fr/forum/viewtopic.php?f=2&t=103886 https://paybackking.com/forum/viewtopic.php?f=8&t=6159 https://tg-dst.ru/forum/messages/forum1/topic15/message78458/?result=reply#message78458 https://teedinzone.com/webboard/index.php?topic=73053.new#new https://www.radiopeep.com/forum/viewtopic.php?f=8&t=60&p=53060#p53060
    http://metr.by/object/2076593 http://metr.by/object/2076594 http://va2na.com/forum/viewtopic.php?f=2&t=185068 http://188.165.51.17/blog/382616 http://realrawtruths.com/2016/03/hot-topic_-the-power-of-the-human-spirit/?unapproved=262467&moderation-hash=55ac1ce508d56f655d211c5f5fed4c92#comment-262467 http://forum.12sky2.online/index.php?/topic/519-stayhome-now/page/2649/#comment-1148202 http://forum.irancognitivescience.com/showthread.php?tid=33695 https://carmenego.wordpress.com/?contact-form-id=2&contact-form-sent=295547&contact-form-hash=01f6d8ef4328785cb0aff80b826b83ef674c7e8a&_wpnonce=91803f0f5e http://www.warrenrodwell.com/2015/04/read-the-book-up-to-you/read-the-book-csp/?unapproved=38001&moderation-hash=90b6e1ecb9e9b4f7d55acc213f00184f#comment-38001 https://guillaumekasbarian.fr/community/topic/tqmryioh/#postid-607278 http://forum.vngk.kz/showthread.php?tid=97483&pid=225342#pid225342 http://realrawtruths.com/2016/03/hot-topic_-the-power-of-the-human-spirit/?unapproved=262468&moderation-hash=05972fbe9eabedbfab3c3c51320e4061#comment-262468 https://bromleyestatesmarbella.com/contact-us/?cf_er=_cf_process_60b7eba4d41a4 http://forums.tpgrpg.net/showthread.php?tid=5818&pid=14461#pid14461 http://metr.by/object/2076599
    http://bbs.hpc-hp.com/viewtopic.php?f=9&t=17472 https://forum.uhleague.ru/viewtopic.php?f=14&t=11752 http://skyscapelive.com/viewtopic.php?f=8&t=5241 http://forum.hilfe-fuer-marco.de/news-allgemein-f64/%C2%AB%D0%9C%D0%A3%D0%9B%D0%AC%D0%A2-%D0%B2-%D0%BA%D0%B8%D0%BD%D0%BE-%D0%92%D1%8B%D0%BF%D1%83%D1%81%D0%BA-104-%D0%A3%D1%80%D0%B0-%D0-t47464.html http://smfpt2.smfpt.net/index.php/topic,65501.new.html#new http://wafnobi.com/comm/viewtopic.php?f=2&t=209207 http://sfpolicedepartment.altervista.org/forum/viewtopic.php?f=2&t=12419 http://grassrootsforum.info/viewtopic.php?f=3&t=18367 http://sd.life-rp.ro/viewtopic.php?f=72&t=1295 https://paybackking.com/forum/viewtopic.php?f=8&t=6160 http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=356158 http://protee.guru/viewtopic.php?f=8&t=2297501 http://jdsawyer.net/forums/viewtopic.php?f=3&t=12175 http://svrsps.com/viewtopic.php?f=7&t=69450 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=10633&p=209027#p209027 https://www.covidforum.cz/viewtopic.php?f=10&t=1005 http://zk-balt.ru/viewtopic.php?f=1&t=6026 http://abc.hiso.club/viewtopic.php?f=12&t=29010 https://mobililenakit.com/showthread.php?tid=7313 http://www.tekmonkey.us/index.php?topic=6272.new#new http://smfpt2.smfpt.net/index.php/topic,65502.new.html#new http://forum.vp-net.ro/showthread.php?tid=6325&pid=24824#pid24824 http://forum.pokerfishka.com/main/9-10max/216182-multi-v-kino-vipusk-104-ura-kanikuli-smotret-multi-v-kino-vipusk-104-ura-kanikuli-multfilm-2021-onlajn-smotret-v-kachestve-hd-1080#218838 http://www.voip2voice.com/viewtopic.php?f=8&t=1689&p=10521#p10521 http://forum.techwooddesign.cz/viewtopic.php?f=13&t=976

Leave a Reply

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