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.

    90290878872226373120539023
    https://highschoolhouseparty.com/weckingball-push-up-contest/?unapproved=374147&moderation-hash=626ad527e2ccf4d93d126aa8ee70602d#comment-374147 https://sabettingforum.com/forum-3/topic/vkyituru http://naturalbodybuilding.ru/ru/node/26352#comment-368304 http://naturalbodybuilding.ru/ru/node/26352#comment-368300 http://naturalbodybuilding.ru/ru/node/26352#comment-368302 https://highschoolhouseparty.com/weckingball-push-up-contest/?unapproved=374149&moderation-hash=c5e819bc864cea3a7a9c2b662772f1c3#comment-374149 http://naturalbodybuilding.ru/ru/node/26352#comment-368308 http://www.holistichappinessblog.com/apple-cheddar-kale-salad/?unapproved=1653406&moderation-hash=9f6905c85dbc739e6c1fdd0f3b4657b3#comment-1653406 http://krikstynoms.lt/idejos-krikstynoms/kaip-puostis-krikstynoms?page=2729#comment-191851 https://wondernotenvy.wordpress.com/author/67tyu876/?contact-form-id=354827&contact-form-sent=424015&contact-form-hash=29708163069e051c2cedf8af7b9d265502340782&_wpnonce=7069156fbb https://rawsugarstudio.com/2015/09/arlo-guthrie-coming-to-lorain-palace-october-3rd/?unapproved=232957&moderation-hash=7fadf2ecd17daec2b48af39b9d3446dc#comment-232957 https://www.sql-server-performance.com/w2k-filesystem-affects-performance/?unapproved=192286&moderation-hash=86e9a0bf4337f6adbff7569cc8569394#comment-192286 http://gamingrev.com/2010/06/02/forum-is-back-online/?unapproved=68930&moderation-hash=804bdfde14d535534d03dad89e790903#comment-68930 http://benjamindinh.fr/forum/showthread.php?tid=795818 https://forum.cctvtechforum.com/Thread-jjvzunik
    http://ictopschool.one/forum/index.php/topic,140935.new.html#new https://webboard.thaibaccarat.net/index.php?topic=331265.new#new https://logoushka.ru/viewtopic.php?f=5&t=9285 http://cyberweb.pt/viewtopic.php?f=3&t=37116 http://forum.vkportal.ba/viewtopic.php?f=17&t=648&p=26344#p26344 http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=92371&Itemid=194#92323 https://www.rustlandgermany.de/viewtopic.php?f=7&t=18818 http://www.mbwguitars.com/forum/viewtopic.php?f=5&t=3952 https://rod-podzamcze.pl/forum/showthread.php?tid=3176 http://www.inforbarget.fr/forum/viewtopic.php?f=20&t=36903 https://tg-dst.ru/forum/messages/forum1/topic15/message80485/?result=reply#message80485 http://fromateakdeck.com/forum/viewtopic.php?f=4&t=68206 https://www.covidforum.cz/viewtopic.php?f=10&t=1226 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=10633&p=210583#p210583 https://clancannabis.com.br/forum/showthread.php?tid=2316 https://www.nflmessageboard.com/showthread.php?tid=99222 http://sound-book.net/viewtopic.php?f=5&t=24793 https://www.fxforecasting.com/viewtopic.php?f=5&t=8787 http://aprehendiendobiblia.com/index.php/foro/buzon-de-sugerencias/88426-2021#940443 https://teedinzone.com/webboard/index.php?topic=77053.new#new http://weebbun.com/showthread.php?tid=180119 https://shortcels.co/index.php?/topic/131323-%C2%AB%D1%81%D0%B5%D0%BC%D0%B5%D0%B9%D0%BA%D0%B0-%D0%B2%D0%B0%D0%BC%D0%BF%D0%B8%D1%80%D0%BE%D0%B2-%C2%BB-%E2%A0%89-%D1%81%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C-%D0%BE%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD-%D1%81%D0%B5%D0%BC%D0%B5%D0%B9%D0%BA%D0%B0-%D0%B2%D0%B0%D0%BC%D0%BF%D0%B8%D1%80%D0%BE%D0%B2-%D0%BC%D1%83%D0%BB%D1%8C%D1%82%D0%B8%D0%BA-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%B2-%D0%BA%D0%B0%D1%87%D0%B5%D1%81%D1%82%D0%B2%D0%B5-hd-720/ http://www.inforbarget.fr/forum/viewtopic.php?f=20&t=36905 http://www.tekmonkey.us/index.php?topic=7016.new#new http://discustorming.com/viewtopic.php?f=2&t=111129
    https://www.successdigestforum.com/viewtopic.php?f=6&t=1863145 https://www.successdigestforum.com/viewtopic.php?f=6&t=1863141 https://www.successdigestforum.com/viewtopic.php?f=6&t=1863148 https://www.successdigestforum.com/viewtopic.php?f=6&t=1863143 https://www.successdigestforum.com/viewtopic.php?f=6&t=1863136 https://www.source-forum.com/showthread.php?tid=161017 https://www.source-forum.com/showthread.php?tid=161018 http://benjamindinh.fr/forum/showthread.php?tid=795822 http://smartreport.tech/forum/showthread.php?tid=7558 http://forumturystyka.pl/showthread.php?tid=4890 http://www.game-train.de/index.php?task=view&id=428 http://metr.by/object/2086551 http://metr.by/object/2086546 http://cafekulinarya.co.uk/?attachment_id=118&unapproved=243677&moderation-hash=2dc0eaeaac9c0d76a3263133e94e8a29#comment-243677 https://bromleyestatesmarbella.com/contact-us/?cf_er=_cf_process_60b93bd13ef66
    http://trudixcrs.com/viewtopic.php?f=5&t=4011 http://discustorming.com/viewtopic.php?f=3&t=111124 http://www.voip2voice.com/viewtopic.php?f=8&t=1689&p=10545#p10545 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=440789 https://acdc.0xbt.net/index.php?topic=69680.new#new http://discustorming.com/viewtopic.php?f=3&t=111126 https://sieuthimini.net/viewtopic.php?f=2&t=3262 https://keepemcrowing.com/dir/showthread.php?tid=1957 http://swiadomyprojektant.pl/forum/viewtopic.php?f=23&t=3487 http://67.205.147.96/viewtopic.php?f=2&t=26844 https://www.radiopeep.com/forum/viewtopic.php?f=8&t=60&p=58005#p58005 http://forumdesmonrp.geliland.com/showthread.php?tid=26858 http://protee.guru/viewtopic.php?f=8&t=2330418 https://congnghetuonglai.vn/forum/viewtopic.php?f=38&t=184247 http://www.tekmonkey.us/index.php?topic=7012.new#new http://bbs.hpc-hp.com/viewtopic.php?f=9&t=18385 http://forumseramik.com/viewtopic.php?f=10&t=4101 http://www.uthora.com/showthread.php?tid=5860 http://ca.gopinball.com/forum/viewtopic.php?f=6&t=471350 https://bbwhirlwind.online/viewtopic.php?f=2&t=232477 http://theamazonlegacy.com/phpBB3/viewtopic.php?f=8&t=131884 http://forumseramik.com/viewtopic.php?f=10&t=4099 http://bbs.hpc-hp.com/viewtopic.php?f=9&t=18389 https://bitcoinlove.ca/forum/viewtopic.php?f=3&t=5755 https://www.rustlandgermany.de/viewtopic.php?f=7&t=18820

Leave a Reply

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