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.

    413782672222637790653055
    https://asuratech.com/hello-world/?unapproved=69095&moderation-hash=6bb2b2bf332d95950a162bd09f6755d1#comment-69095 http://cnggaming.com/CNGForum/viewtopic.php?f=7&t=31581 http://naturalbodybuilding.ru/ru/node/13885#comment-377465 https://diamondslivebreaks.com/thread-7332.html http://naturalbodybuilding.ru/ru/node/13885#comment-377466 https://webboard.sport.sanook.com/forum//smi_preview2.php?site=https://webboard.sport.sanook.com/forum/&ID_BOARD=7&ID_TOPIC=11825404&ID_MSG=30279640 https://matrixworlds.ucoz.ru/forum/5-2-216#29858 http://www.forum.jamran-extreme.com/showthread.php?tid=9615 http://naturalbodybuilding.ru/ru/node/13885#comment-377467 http://metr.by/object/2097031 http://behindthebrilliance.com/behind-brilliance-72-list-2016/?unapproved=147703&moderation-hash=3e19be1e6cc7559e47cb9783fe9c5d62#comment-147703 http://bwgforums.net/showthread.php?tid=22716&pid=164104#pid164104 http://naturalbodybuilding.ru/ru/node/13885#comment-377462 http://ngoinhachung.net/diendan/forum.php?mod=viewthread&tid=2435561&pid=5325502&page=7358&extra=#pid5325502 https://bromskirchen-info.de/2021/03/08/zwei-dinge-sind-unendlich/comment-page-3/?unapproved=249376&moderation-hash=3111cd86afc7586903d40dd060ebb597#comment-249376
    http://nauc.info/forums/viewtopic.php?f=3&t=15761590 http://nauc.info/forums/viewtopic.php?f=3&t=15761591 http://nauc.info/forums/viewtopic.php?f=3&t=15761593 http://nauc.info/forums/viewtopic.php?f=3&t=15761594 http://fromateakdeck.com/forum/viewtopic.php?f=4&t=102893 https://www.fxforecasting.com/viewtopic.php?f=5&t=20556 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=529980&sid=00de520d2931920eee5b7fbdaa7bf4d0 http://kriptoturkiye.org/viewtopic.php?f=34&t=15697 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=529983&sid=728eaa185dbbcc59820389e9dc341a67 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=529985&sid=c9d7e644a9c176fca4c201028fe34942 http://vilia.it/index.php/forum/welcome-mat/149155-online-2021#149037 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2719644 http://www.bragaburgerq.com.br/whatspedidos/forum/viewtopic.php?f=3&t=34342 http://arkheimturkiye.com/viewtopic.php?f=6&t=1927 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=529986&sid=80be5bc192fcbcc56b4db22c26c7e919 http://nauc.info/forums/viewtopic.php?f=3&t=15761601 http://hiso.club/viewtopic.php?f=12&t=40140 http://thalianation.com/viewtopic.php?f=6&t=5064 http://nauc.info/forums/viewtopic.php?f=3&t=15761604 http://nauc.info/forums/viewtopic.php?f=3&t=15761605 http://freelineskate.free.fr/forum/viewtopic.php?f=2&t=135469 http://nauc.info/forums/viewtopic.php?f=3&t=15761606 https://warlord.tech/viewtopic.php?f=1&t=14930&p=49145#p49145 http://www.myacnestory.sg/forum/viewtopic.php?f=6&t=13112 http://philippe.payro.free.fr/forum/viewtopic.php?f=2&t=142296
    https://sextingsite.com/viewtopic.php?f=15&t=494568 http://metr.by/object/2097024 http://naturalbodybuilding.ru/ru/node/13885#comment-377463 https://webboard.horoscope.sanook.com/forum//smi_preview2.php?site=https://webboard.horoscope.sanook.com/forum/&ID_BOARD=268&ID_TOPIC=11825410&ID_MSG=30279646 https://the-empire.clan.su/forum/17-349-8#28175 http://chippingnortonopticians.co.uk/cropped-img_4033-1-jpg/?unapproved=125368&moderation-hash=e971709bfdff20b02c65302d40d85b4d#comment-125368 https://mobililenakit.com/showthread.php?tid=14771 http://filmiskane.nu/?page_id=2&unapproved=1549468&moderation-hash=316b85e56d76bc2a926b2c4489a1d722#comment-1549468 http://ngoinhachung.net/diendan/forum.php?mod=viewthread&tid=2435561&pid=5325511&page=7359&extra=#pid5325511 http://naturalbodybuilding.ru/ru/node/13885#comment-377468 http://naturalbodybuilding.ru/ru/node/13885#comment-377475 https://adammaarschalk.com/about/?contact-form-id=2&contact-form-sent=352574&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=783c837a63 http://www.mer-pcr.com/?unapproved=326023&moderation-hash=3f65585f5e949471100278dc4267e43f#comment-326023 http://naturalbodybuilding.ru/ru/node/13885#comment-377470 http://ngoinhachung.net/diendan/forum.php?mod=viewthread&tid=2435561&pid=5325504&page=7358&extra=#pid5325504
    http://www.wafnobi.com/comm/viewtopic.php?f=2&t=279516 http://vilia.it/index.php/forum/welcome-mat/149157-2-online-2-2021#149039 http://israelidebate.com/opinions/viewtopic.php?f=3&t=1502314 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=529987&sid=62cc2f58ce7b9572242203b514c48a5f http://nauc.info/forums/viewtopic.php?f=3&t=15761608 http://nauc.info/forums/viewtopic.php?f=3&t=15761612 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=471346 https://logoushka.ru/viewtopic.php?f=5&t=15575 http://www.tekmonkey.us/index.php?topic=18789.new#new https://traveldiscussions.com/viewtopic.php?f=8&t=106682 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=529988&sid=ddcd3a5f0ed22d0201f1681bada860f8 http://nauc.info/forums/viewtopic.php?f=3&t=15761613 https://traveldiscussions.com/viewtopic.php?f=8&t=106679 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=529989&sid=374419e3f5815daf9786d7d4b5cfa6de https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=385524 http://www.ankarac.com/index.php/topic,75312.new.html#new http://www.reo14.moe.go.th/phpBB3/viewtopic.php?f=5&t=1050249 http://israelidebate.com/opinions/viewtopic.php?f=3&t=1502318 http://www.piminigeria.com/index.php/en/forum/welcome-to-pimi-ghana-forum/251772-2021#251837 http://www.driverconnection.net/forums/viewtopic.php?pid=268203#p268203 https://africainvestmentgroupint.com/index.php/forum/welcome-mat/34771-3-3-2021#34778 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=529991&sid=c734ab3fc911ba1a36ff5d06fc2369b3 https://bironi.ru/forum/messages/forum1/topic9/message430567/?result=reply#message430567 http://169.59.9.108/index.php/topic,52170.new.html#new http://oleksy-bau.de/index.php/forum/welcome-mat/1017075-106-106-2021-hd#1016341

Leave a Reply

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