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.

    4188638756548881569143691399677
    https://spuiterijdewerf.nl/uncategorized/hello-world/?unapproved=120154&moderation-hash=ec33828f0f4c504b60af61cd4caf8a1a#comment-120154 https://yimei2018.com/forum.php?mod=viewthread&tid=704614&extra= http://naturalbodybuilding.ru/ru/node/26352#comment-373002 http://www.ulfholmer.se/?p=1&unapproved=182359&moderation-hash=75d0b0f9f087a8df5f65d814fc6bbf3f#comment-182359 http://www.anstiss.com/?contact-form-id=widget-text-9&contact-form-sent=311659&contact-form-hash=226da66c92c2bee8af63abc8086fc7e635d09b21&_wpnonce=4b85344261 http://metr.by/object/2081102 http://slapinsky.com/nature/the-struggle-is-real/?unapproved=109337&moderation-hash=f45a1f9c05afb2db0d78e87b3a18cb0b#comment-109337 https://yimei2018.com/forum.php?mod=viewthread&tid=703725&extra= http://ntumatch.com/forum.php?mod=viewthread&tid=389605&extra= http://naturalbodybuilding.ru/ru/node/26352#comment-371255 http://metr.by/object/2084676 http://printconverting.com/it/node/332987 https://www.successdigestforum.com/viewtopic.php?f=6&t=1864587 https://mobililenakit.com/showthread.php?tid=15048 http://www.game-train.de/index.php?task=view&id=484
    http://www.ankarac.com/index.php/topic,80261.new.html#new http://palais.beesims.com/phpbb/viewtopic.php?f=4&t=87432 http://nauc.info/forums/viewtopic.php?f=3&t=15779284 https://cartschat.com/viewtopic.php?f=3&t=33372 http://www.labor-economics.org/forum/viewtopic.php?f=5&t=1704080 http://nauc.info/forums/viewtopic.php?f=3&t=15760830 http://labor-economics.org/forum/viewtopic.php?f=5&t=1708208 http://nauc.info/forums/viewtopic.php?f=3&t=15768030 http://nauc.info/forums/viewtopic.php?f=3&t=15786145 http://nauc.info/forums/viewtopic.php?f=3&t=15752211 http://thalianation.com/viewtopic.php?f=6&t=4991 http://roadragenz.com/forum/viewtopic.php?f=27&t=1176096 http://sound-book.net/viewtopic.php?f=5&t=42739 http://philippe.payro.free.fr/forum/viewtopic.php?f=2&t=144398 http://nauc.info/forums/viewtopic.php?f=3&t=15747572 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=529235&sid=4e147176cd6f945cb78a55239dbd7234 http://estetikvediyet.com/viewtopic.php?f=8&t=361046 http://www.tekmonkey.us/index.php?topic=19324.new#new http://nauc.info/forums/viewtopic.php?f=3&t=15749306 https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=386923 http://nauc.info/forums/viewtopic.php?f=3&t=15747976 http://nauc.info/forums/viewtopic.php?f=3&t=15766243 https://paybackking.com/forum/viewtopic.php?f=8&t=18649 https://congnghetuonglai.vn/forum/viewtopic.php?f=38&t=238988 http://nauc.info/forums/viewtopic.php?f=3&t=15761173
    https://club-2105.org/24-hours-of-silliness-aboard-the-benelli-tnt135/?unapproved=124505&moderation-hash=bce806602d3a57ba79c946bfec468059#comment-124505 https://www.hispawno.com/showthread.php?tid=79973 http://ngoinhachung.net/diendan/forum.php?mod=viewthread&tid=2435561&pid=5327497&page=7477&extra=#pid5327497 http://hsien.com.freehostia.com/viewthread.php?tid=460480&extra=page%3D1 https://eraoflight.com/forum/?contact-form-id=widget-custom_html-30&contact-form-sent=270793&contact-form-hash=a1cbfc0ba18ffe5ea561bb4912566cea912d559e&_wpnonce=dccd097cf7 http://filmiskane.nu/?page_id=2&unapproved=1545471&moderation-hash=72091504f321a4b0b2d5b8336555c0bb#comment-1545471 http://post.12gates.net/showthread.php?tid=355599&pid=707071#pid707071 http://www.theworldwars.net/forum/showthread.php?tid=185063 https://eraoflight.com/forum/?contact-form-id=widget-custom_html-30&contact-form-sent=269801&contact-form-hash=a1cbfc0ba18ffe5ea561bb4912566cea912d559e&_wpnonce=cd406f4204 http://www.ulfholmer.se/?p=1&unapproved=182521&moderation-hash=4747db4580a43bf8a521e7c6d00c4a9e#comment-182521 http://avaya.newsystems.ru/forum/messages/forum1/topic215051/message233002/?result=new http://ytubetalk.com/viewtopic.php?f=14&t=34743 https://www.successdigestforum.com/viewtopic.php?f=10&t=104659&p=3314938#p3314938 http://realrawtruths.com/2016/03/hot-topic_-the-power-of-the-human-spirit/?unapproved=262681&moderation-hash=bdabde24ad30c3fec2c9efa49468b79e#comment-262681 http://theartsglobetrotter.com/2015/09/jeff-koonss-sculpture-installed-in-florence-jeff-koons-installa-una-sua-scultura-a-firenze/?unapproved=82092&moderation-hash=91c2efa7dcf57e96c4c90a4db32bb7b6#comment-82092
    http://barcelonaforum.ru/obschii-2/programmirovanie-kontrollerov-913/index2707.html#post356656 http://nauc.info/forums/viewtopic.php?f=3&t=15772295 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?p=238907 http://nauc.info/forums/viewtopic.php?f=3&t=15777903 http://nauc.info/forums/viewtopic.php?f=3&t=15750781 http://www.lovebird.it/index.php/forum/pappagalli/130664-2021#673493 http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=135225&Itemid=194#135507 http://philippe.payro.free.fr/forum/viewtopic.php?f=2&t=146454 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=533352&sid=e4e224ade55a7d3dd58636992370698a http://thalianation.com/viewtopic.php?f=6&t=6199 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=533885&sid=94afd0007ae27124b2a52e362d87125c https://bestrunar.com/board/index.php?topic=22002.new#new http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=132593&Itemid=194#132875 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2721635 http://onlinexmassage.com/viewtopic.php?f=56&t=98401 http://nauc.info/forums/viewtopic.php?f=3&t=15758087 https://tfa-sl.com/viewtopic.php?f=9&t=30372 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2721020 http://barcelonaforum.ru/obschii-2/seks-znakomstva-sankt-peterburg-4442/index278.html#post352489 http://chinacar.kiev.ua/chery-tiggo/2369-obitel-straha-smotret-onlain-v-horoshem-kachestve-182.html#post369811 https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=392855 https://forum.smart-venture.org/viewtopic.php?f=3&t=37797 http://67.205.147.96/viewtopic.php?f=2&t=4151&p=83483#p83483 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=532543&sid=f63d9d01c88d60f21b87029b6a8f4b05 http://www.labor-economics.org/forum/viewtopic.php?f=5&t=1705348

Leave a Reply

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