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.

    10822267812226372822214431
    http://realrawtruths.com/2016/03/hot-topic_-the-power-of-the-human-spirit/?unapproved=263068&moderation-hash=b64ca13c966d14159e04b0b4bcc87c81#comment-263068 http://metr.by/object/2086048 http://metr.by/object/2086045 http://naturalbodybuilding.ru/ru/node/26352#comment-367852 http://periodicomicasa.com.mx/periodico-mi-casa-enero-2017/?unapproved=27194&moderation-hash=aab297884d25c971699698e44afedc85#comment-27194 http://kinomozg.club/topic/127-mail-addurl/?page=8228#comment-146755 https://sextingsite.com/viewtopic.php?f=15&t=490639 http://auto-multimedia.com/viewtopic.php?f=14&t=4616 http://www.atworkwerkt.nl/uncategorized/hello-world/?unapproved=3552055&moderation-hash=8ae15bc30ee24ee64ed291faefcf4dba#comment-3552055 http://diagnost.ee/pood/attachment/_13/?unapproved=216949&moderation-hash=ace3210a2e55e69febedbd3986329bd7#comment-216949 http://weebbun.com/showthread.php?tid=216499 http://metr.by/object/2086047 http://metr.by/object/2086059 http://metr.by/object/2086058 http://www.mer-pcr.com/?unapproved=325547&moderation-hash=5dcf36f46328f4f4bb48d2a6e9eb26cb#comment-325547
    http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2720478 http://nauc.info/forums/viewtopic.php?f=3&t=15767354 http://philippe.payro.free.fr/forum/viewtopic.php?f=2&t=143179 http://dogging.dk/forum/viewtopic.php?f=3&t=94212 http://nauc.info/forums/viewtopic.php?f=3&t=15767355 http://protee.guru/viewtopic.php?f=8&t=2529278 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=532161&sid=61c3a609dd0100101f9f0156b93935cc http://bbs.hpc-hp.com/viewtopic.php?f=9&t=38714 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=532163&sid=083dbf18085d93f4dfd71ea39f371e67 https://www.fxforecasting.com/viewtopic.php?f=5&t=20923 http://nauc.info/forums/viewtopic.php?f=3&t=15767334 https://forum.wdwnorth.com/viewtopic.php?f=4&t=199020 http://nauc.info/forums/viewtopic.php?f=3&t=15767357 http://nauc.info/forums/viewtopic.php?f=3&t=15767358 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=9928&p=239394#p239394 https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=386770 http://nauc.info/forums/viewtopic.php?f=3&t=15767359 https://watchmoviesonlinenow.org/index.php/topic,25852.new.html#new https://junkraiders.cl/foro/viewtopic.php?f=3&t=64867 http://forum.vkportal.ba/viewtopic.php?p=45582 http://www.onlinexmassage.com/viewtopic.php?f=56&t=99696 http://nauc.info/forums/viewtopic.php?f=3&t=15767361 http://nauc.info/forums/viewtopic.php?f=3&t=15767360 http://generator.altervista.org/viewtopic.php?f=2&t=18056 http://discustorming.com/viewtopic.php?f=2&t=150331
    http://www.mer-pcr.com/?unapproved=325548&moderation-hash=db47609229ae74d551f6ffd26719d399#comment-325548 http://naturalbodybuilding.ru/ru/node/26352#comment-367855 http://gamingrev.com/2010/06/02/forum-is-back-online/?unapproved=68902&moderation-hash=b69462baba6c0be398bb035b9f543500#comment-68902 http://www.game-train.de/index.php?task=view&id=1320 https://sabettingforum.com/forum-3/topic/wrlyssqt http://naturalbodybuilding.ru/ru/node/26352#comment-367857 http://naturalbodybuilding.ru/ru/node/26352#comment-367863 http://naturalbodybuilding.ru/ru/node/26352#comment-367867 http://naturalbodybuilding.ru/ru/node/26352#comment-367858 https://www.hercommonthread.com/2019/02/04/a-new-chapter/?unapproved=128264&moderation-hash=ea4e519856bcb03016e83da5b4827104#comment-128264 https://highschoolhouseparty.com/weckingball-push-up-contest/?unapproved=373982&moderation-hash=75642c0043adb91e3707541ee5b98e9c#comment-373982 http://naturalbodybuilding.ru/ru/node/26352#comment-367864 http://chippingnortonopticians.co.uk/cropped-img_4033-1-jpg/?unapproved=124629&moderation-hash=6df4221d62045bdab9904a639d97f0b6#comment-124629 http://naturalbodybuilding.ru/ru/node/26352#comment-367862 https://redclayyoga.org/contact/?contact-form-id=6&contact-form-sent=123016&contact-form-hash=3dec796194dbd8a17bf78b7372750e4a7d845e8d&_wpnonce=26775c2032
    http://nauc.info/forums/viewtopic.php?f=3&t=15767363 http://www.onlinexmassage.com/viewtopic.php?f=56&t=99697 https://erpyme.cl/foro/viewtopic.php?f=10&t=126&p=14425#p14425 https://www.dumankayahifit.com/index.php?topic=34839.new#new http://nauc.info/forums/viewtopic.php?f=3&t=15767366 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2720479 https://traveldiscussions.com/viewtopic.php?f=8&t=108423 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=472100 http://club66s.com/forum/viewtopic.php?f=2&t=260477 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=532167&sid=45c3378ce3a661b0ea16b94222c4d9c5 http://myweddinglight.us/index.php/topic,13180.new.html#new http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=135799&Itemid=194#136081 http://nauc.info/forums/viewtopic.php?f=3&t=15767367 http://nauc.info/forums/viewtopic.php?f=3&t=15767370 http://wafnobi.com/comm/viewtopic.php?f=2&t=280493 https://cartschat.com/viewtopic.php?f=3&t=31045 http://lasertrace.nl/forum/viewtopic.php?f=6&t=1176092 http://wafnobi.com/comm/viewtopic.php?f=2&t=280494 http://nauc.info/forums/viewtopic.php?f=3&t=15767374 http://estetikvediyet.com/viewtopic.php?f=8&t=362939 http://www.ankarac.com/index.php/topic,76795.new.html#new http://nauc.info/forums/viewtopic.php?f=3&t=15767375 https://web-forum.do.am/forum/31-3137-39#7533 https://www.dumankayahifit.com/index.php?topic=34840.new#new http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=532171&sid=d2b710e246472ae22c8feafd50341991

Leave a Reply

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