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.

    2919751753328881569291555158890
    http://naturalbodybuilding.ru/ru/node/13885#comment-361098 http://cvt-portal.ru/showthread.php?tid=25063&pid=133350#pid133350 https://sextingsite.com/viewtopic.php?f=15&t=488453 https://sextingsite.com/viewtopic.php?f=15&t=488242 http://cafekulinarya.co.uk/?attachment_id=118&unapproved=243436&moderation-hash=a7ffc5c345600d89e4f82d748a6e9ce5#comment-243436 https://highschoolhouseparty.com/weckingball-push-up-contest/?unapproved=372371&moderation-hash=ca2ae1b7ea7e8c92dba51864413358d2#comment-372371 https://carmenego.wordpress.com/?contact-form-id=2&contact-form-sent=295581&contact-form-hash=01f6d8ef4328785cb0aff80b826b83ef674c7e8a&_wpnonce=e637214013 https://experthorticulture.com/forum/showthread.php?tid=3251 http://diagnost.ee/pood/attachment/_13/?unapproved=216576&moderation-hash=b97f05d6f55dcb7818762ee10437c937#comment-216576 http://chippingnortonopticians.co.uk/cropped-img_4033-1-jpg/?unapproved=123946&moderation-hash=4a5479aee08d872f34b4d7477ae4ef25#comment-123946 http://metr.by/object/2077500 http://pregnancytracker.net/forum/index.php?topic=52424.new#new http://kharkovforum.com.ua/viewtopic.php?f=11&t=298833 https://www.successdigestforum.com/viewtopic.php?f=6&t=1856057 https://lsnn.mik3nl.com/index.php?/topic/31324-wveribsu/
    http://awhole.com/forum/viewtopic.php?f=7&t=98951 http://www.lovebird.it/index.php/forum/rettili/130344-2021-1080#673173 https://jimhelton.com/viewtopic.php?f=2&t=240129 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2719245 http://www.ankarac.com/index.php/topic,74914.new.html#new https://share1s.net/viewtopic.php?f=21&t=1368773 http://philippe.payro.free.fr/forum/viewtopic.php?f=2&t=142144 http://www.voxelpunk.com/forum/viewtopic.php?f=4&t=12583 https://huntwinnerforum.com/viewtopic.php?f=4&t=63343 http://cyberweb.pt/viewtopic.php?f=3&t=67468 https://jimhelton.com/viewtopic.php?f=2&t=239925 http://nauc.info/forums/viewtopic.php?f=3&t=15749501 http://smfpt2.smfpt.net/index.php/topic,92023.new.html#new http://fromateakdeck.com/forum/viewtopic.php?f=4&t=101522 http://www.tekmonkey.us/index.php?topic=18499.new#new http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=529090&sid=1508a83b13eeb148f57f4d5d8dac90e3 https://sharecovid19story.com/viewtopic.php?f=19&t=42369 http://nauc.info/forums/viewtopic.php?f=3&t=15747317 https://ufarms.ru/viewtopic.php?f=3&t=12698 http://nauc.info/forums/viewtopic.php?f=3&t=15756344 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2718443 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2719195 http://nauc.info/forums/viewtopic.php?f=3&t=15759355 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=526365&sid=009072b1c7cc3b040e3709d7f7745097 http://cyberweb.pt/viewtopic.php?f=3&t=66786
    https://rawsugarstudio.com/2015/09/arlo-guthrie-coming-to-lorain-palace-october-3rd/?unapproved=232728&moderation-hash=3db8b812a9b0f32082ceb77c14d58d6c#comment-232728 https://www.hercommonthread.com/2019/02/04/a-new-chapter/?unapproved=127994&moderation-hash=b6300509f84b725df62c64e22037f53a#comment-127994 https://ninerp.com/forums/showthread.php?tid=105997 https://onblackside.ucoz.ru/forum/9-85-99#64511 https://lsnn.mik3nl.com/index.php?/topic/31004-eytxaetj/ http://slapinsky.com/nature/the-struggle-is-real/?unapproved=109142&moderation-hash=ec960ddd8f74657ab95c5d917f10f293#comment-109142 http://193167.kharkovf.web.hosting-test.net/viewtopic.php?f=11&t=298145 https://michaelmcgrinder.com/?contact-form-id=769&contact-form-sent=151511&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=011706c160 http://kafferecept.se/recipe/chai-latte/?unapproved=860672&moderation-hash=11bbd10372d172fdd5a771564ca1bcdd#comment-860672 http://weebbun.com/showthread.php?tid=213926 http://post.12gates.net/showthread.php?tid=350261&pid=696561#pid696561 http://www.game-train.de/index.php?task=view&id=1180 http://porthkerris.com/forum/viewtopic.php?f=7&t=688889 http://www.theworldwars.net/forum/showthread.php?tid=183804 https://everaldcompton.com/?contact-form-id=106&contact-form-sent=691680&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=9ce7c9d64a
    http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=529766&sid=fa54bc065e614cfe6a532769c60d9cd6 https://www.roqstech.de/viewtopic.php?p=2674591 http://ictopschool.one/forum/index.php/topic,208828.new.html#new http://philippe.payro.free.fr/forum/viewtopic.php?f=2&t=141462 http://nauc.info/forums/viewtopic.php?f=3&t=15754858 http://uoleps.co.uk/viewtopic.php?f=19&t=8704 https://jimhelton.com/viewtopic.php?f=2&t=239968 http://thevms.net/index.php?topic=95607.new#new http://discustorming.com/viewtopic.php?f=2&t=148034 http://www.lovebird.it/index.php/forum/animali-smarriti/130337-2021-hd-720#673166 http://nauc.info/forums/viewtopic.php?f=3&t=15748426 http://lasertrace.nl/forum/viewtopic.php?f=6&t=1168733 http://club66s.com/forum/viewtopic.php?f=2&t=258917 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=10633&p=237811#p237811 http://lasertrace.nl/forum/viewtopic.php?f=6&t=1171449 http://sound-book.net/viewtopic.php?f=5&t=41755 http://calvarychapeljoco.com/new/index.php/forum/welcome-mat/1248573-2021-hd-1080#1248542 http://nauc.info/forums/viewtopic.php?f=3&t=15757600 http://www.school36-tambov.ru/forum/viewtopic.php?f=17&t=469951 http://onlinexmassage.com/viewtopic.php?f=56&t=99027 http://venum.clan.sk/forum/viewthread.php?thread_id=287601 http://www.school36-tambov.ru/forum/viewtopic.php?f=17&t=471066 https://teedinzone.com/webboard/index.php?topic=117767.new#new http://school36-tambov.ru/forum/viewtopic.php?f=17&t=470145 http://www.piminigeria.com/index.php/en/forum/welcome-to-pimi-ghana-forum/251599-2021-hd#251664

Leave a Reply

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