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.

    82809332582226374159215503
    https://razvodnya.ru/viewtopic.php?p=27593 http://naturalbodybuilding.ru/ru/node/13885#comment-387485 http://pulsar-forum.pl/showthread.php?tid=238225 http://naturalbodybuilding.ru/ru/node/13885#comment-387483 https://noblenetworks.co.uk/showthread.php?tid=7328 http://naturalbodybuilding.ru/ru/node/13885#comment-387487 http://sexnzb.com/epnmlzgi-t602587.html http://metr.by/object/2108364 https://www.minexcointalk.com/how-to-make-money-as-a-student-in-the-uk/?unapproved=83229&moderation-hash=476ffdd636221390e50e9381d7dea7aa#comment-83229 https://forum.kardiolo.pl/topic/30749-lndwpipq/ http://forum.vp-net.ro/showthread.php?tid=7282&pid=47440#pid47440 https://studentskorner.com/showthread.php?tid=37468&pid=60126#pid60126 https://redclayyoga.org/contact/?contact-form-id=6&contact-form-sent=123582&contact-form-hash=3dec796194dbd8a17bf78b7372750e4a7d845e8d&_wpnonce=2df3e4cc55 https://mobililenakit.com/showthread.php?tid=15274&pid=45996#pid45996 https://ausupreme.com/mavista/cms/en/contact-us?ticket=UFRTGILNHF1622882897591
    http://zk-balt.ru/viewtopic.php?f=1&t=15374 http://barcelonaforum.ru/obschii-2/programmirovanie-kontrollerov-913/index2829.html#post361005 http://nauc.info/forums/viewtopic.php?f=3&t=15828204 http://nauc.info/forums/viewtopic.php?f=3&t=15828208 http://nauc.info/forums/viewtopic.php?f=3&t=15828210 https://teedinzone.com/webboard/index.php?topic=130897.new#new https://warlord.tech/viewtopic.php?f=1&t=32176 http://nauc.info/forums/viewtopic.php?f=3&t=15828222 http://sound-book.net/viewtopic.php?f=5&t=46681 http://nauc.info/forums/viewtopic.php?f=3&t=15828218 http://lasertrace.nl/forum/viewtopic.php?f=6&t=1202449 https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=398573 https://clubhipico.net/guarnicioneria/19428-in-tasi-gia-y-ae-a-ng-a-ra-n-tasi-ga-c-tasi-khoai-ta-y-5.html#post79670 http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=149886&Itemid=194#150168 http://nauc.info/forums/viewtopic.php?f=3&t=15828237 http://nauc.info/forums/viewtopic.php?f=3&t=15828239 http://forum.pokerfishka.com/main/9-10max/230785-garri-potter-smotret-garri-potter-multfilm-2021-goda-onlajn-russkij#233611 https://share1s.net/viewtopic.php?f=21&t=1380675 http://trudixcrs.com/viewtopic.php?f=5&t=15702 http://riicorecruitment.org/index.php/topic,7580.new.html#new https://forum.latimojong.com/viewtopic.php?f=10&t=37190 http://nauc.info/forums/viewtopic.php?f=3&t=15828241 http://nauc.info/forums/viewtopic.php?f=3&t=15828248 https://forum168.com/index.php?topic=8366.new#new http://pakimmigration.com/viewtopic.php?f=12&t=15306
    https://clancannabis.com.br/forum/showthread.php?tid=8842 https://www.html5videobank.com/community/showthread.php?tid=43359&pid=357327#pid357327 https://tomhuff.wordpress.com/about/?contact-form-id=2&contact-form-sent=696004&contact-form-hash=c426da521d31d5406fd89c0578178c19369e58a8&_wpnonce=e0f4165640 http://forum.12sky2.online/index.php?/topic/519-stayhome-now/page/2684/#comment-1177621 https://redjester.org/forums/showthread.php?tid=33537 http://www.holistichappinessblog.com/apple-cheddar-kale-salad/?unapproved=1654692&moderation-hash=9ce9601a587db9100f446766e508ffd5#comment-1654692 http://naturalbodybuilding.ru/ru/node/13885#comment-387503 https://vaporizerx.com/blu-e-cig-batteries-510-threading-possibilities/?unapproved=71266&moderation-hash=54fd9a2ad1069101c3d8c4b1843773c4#comment-71266 http://naturalbodybuilding.ru/ru/node/13885#comment-387512 http://chippingnortonopticians.co.uk/cropped-img_4033-1-jpg/?unapproved=126086&moderation-hash=351162876a276b7dbcb9c75bf633a763#comment-126086 https://www.nflmessageboard.com/showthread.php?tid=109085&pid=215747#pid215747 https://www.heliomariano.adv.br/o-novo-bacenjud-em-5-topicos/?unapproved=191601&moderation-hash=7b7bcba2f1039b3432af7ee7b6fbe064#comment-191601 http://suiteusergroup.com/suiteforum/showthread.php?tid=114121 http://naturalbodybuilding.ru/ru/node/13885#comment-387514 http://forum.kraspivo.ru/viewtopic.php?f=6&t=114365
    http://forum.kopkon.ru/viewtopic.php?f=1&t=36457 http://discustorming.com/viewtopic.php?f=2&t=158852 http://nauc.info/forums/viewtopic.php?f=3&t=15828268 https://lysto-forum.tue-image.nl/index.php?topic=145759.new#new http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=10633&p=248468#p248468 http://thaimakemoneyclub.com/viewtopic.php?f=2&t=12221 http://nauc.info/forums/viewtopic.php?f=3&t=15828269 http://forum.wybrzezereymonta.com.pl/viewtopic.php?f=3&t=178792 http://nauc.info/forums/viewtopic.php?f=3&t=15828272 https://csgo.bg/forum/viewtopic.php?f=87&t=4215 http://smfpt2.smfpt.net/index.php/topic,103183.new.html#new http://caradaftarayams128.com/index.php/topic,24863.new.html#new http://smfpt2.smfpt.net/index.php/topic,103184.new.html#new https://teedinzone.com/webboard/index.php?topic=130906.new#new https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=398577 http://unraveled.net/phpbb/viewtopic.php?f=6&t=2278721 https://forum.nebula-galaxia.de/viewtopic.php?f=2&t=571408 http://odinofficial.com/forums/viewtopic.php?f=8&t=8938 http://nauc.info/forums/viewtopic.php?f=3&t=15828270 https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=398579 http://pakimmigration.com/viewtopic.php?f=12&t=15310 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=10633&p=248477#p248477 http://zk-balt.ru/viewtopic.php?f=1&t=15378 http://barcelonaforum.ru/obschii-2/seks-znakomstva-sankt-peterburg-4442/index285.html#post360964 http://www.safakroleplayfivem.com/index.php?topic=191545.new#new

Leave a Reply

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