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.

    9383471336222637472488713
    https://homment.com/X8EHIXZ9idDnQCKSEryn http://ru.evbud.com/projects/2871274/ https://byazemanki.ucoz.ru/forum/15-7990-24#671487 http://conternative.com/showthread.php?tid=30532 https://knifeguru.ru/forum/messages/forum1/topic3/message82890/?result=reply#message82890 https://club-2105.org/24-hours-of-silliness-aboard-the-benelli-tnt135/?unapproved=123694&moderation-hash=4d83eb5c021b21363373e011c4a7e3d0#comment-123694 http://www.atworkwerkt.nl/uncategorized/hello-world/?unapproved=3548477&moderation-hash=6784a393f2e3e1b0dda1eaaf428fd461#comment-3548477 http://cnggaming.com/CNGForum/viewtopic.php?f=7&t=30957 https://kusbaz.ru/viewtopic.php?f=45&t=223812 http://rohstudio.dk/katie-scott/?unapproved=122988&moderation-hash=bb060718eabc4939c0d3eefda4dc4c72#comment-122988 http://metr.by/object/2076477 http://www.game-train.de/index.php?task=view&id=601 https://eraoflight.com/forum/?contact-form-id=widget-custom_html-30&contact-form-sent=269682&contact-form-hash=a1cbfc0ba18ffe5ea561bb4912566cea912d559e&_wpnonce=396fe69c1f http://metr.by/object/2076479 http://www.game-train.de/index.php?task=view&id=1079
    http://post.12gates.net/showthread.php?tid=321226&pid=643172#pid643172 http://www.tekmonkey.us/index.php?topic=7321.new#new http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=361183 https://traveldiscussions.com/viewtopic.php?f=8&t=64253 http://smfpt2.smfpt.net/index.php/topic,68664.new.html#new https://watchmoviesonlinenow.org/index.php/topic,4717.new.html#new http://www.school36-tambov.ru/forum/viewtopic.php?f=17&t=441188 https://congnghetuonglai.vn/forum/viewtopic.php?f=38&t=184848 http://protee.guru/viewtopic.php?f=8&t=2332006 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=441190 http://avaya.newsystems.ru/forum/messages/forum1/topic192819/message204699/?result=new https://bironi.ru/forum/messages/forum1/topic9/message392864/?result=reply#message392864 http://www.lovebird.it/index.php/forum/casella-dei-suggerimenti/90013-2021#632828 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2695055 https://shortcels.co/index.php?/topic/46100-a-post-modern-age-essay-art-history-ii-filmbay-uvc22612-new-html/page/803/#comment-490603 http://forums.tpgrpg.net/showthread.php?tid=4401 https://watchmoviesonlinenow.org/index.php/topic,4718.new.html#new https://echokirova.ru/forum/messages/forum4/topic108299/message238577/?result=reply#message238577 https://jimhelton.com/viewtopic.php?f=2&t=174249 https://shortcels.co/index.php?/topic/131406-%D0%BA%D0%BE%D1%82-%D0%BF%D0%BE%D0%B4-%D0%BF%D1%80%D0%B8%D0%BA%D1%80%D1%8B%D1%82%D0%B8%D0%B5%D0%BC-%E2%9D%8A-%D1%81%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C-%D0%BA%D0%BE%D1%82-%D0%BF%D0%BE%D0%B4-%D0%BF%D1%80%D0%B8%D0%BA%D1%80%D1%8B%D1%82%D0%B8%D0%B5%D0%BC-%D0%BC%D1%83%D0%BB%D1%8C%D1%82%D0%B8%D0%BA-2021-%D1%81%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C-%D0%BA%D0%B0%D1%87%D0%B5%D1%81%D1%82%D0%B2%D0%BE-1080/ http://hiso.club/viewtopic.php?f=12&t=30841 https://sieuthimini.net/viewtopic.php?f=2&t=3411 http://protee.guru/viewtopic.php?f=8&t=2332005 http://ictopschool.one/forum/index.php/topic,141673.new.html#new http://israelidebate.com/opinions/viewtopic.php?f=3&t=1258464
    https://therockandduckshow.net/showthread.php?tid=83880&pid=172538#pid172538 http://www.holistichappinessblog.com/apple-cheddar-kale-salad/?unapproved=1652750&moderation-hash=2d71dd1c58b80002500838e4480429fe#comment-1652750 https://jewelant.wordpress.com/?contact-form-id=27249&contact-form-sent=563698&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=7b64b6d709 http://weebbun.com/showthread.php?tid=213545 http://post.12gates.net/showthread.php?tid=348367&pid=693016#pid693016 http://metr.by/object/2076481 http://post.12gates.net/showthread.php?tid=348367&pid=693017#pid693017 https://www.minexcointalk.com/how-to-make-money-as-a-student-in-the-uk/?unapproved=82181&moderation-hash=e2047afd844590003ca11949d44dcb1e#comment-82181 https://wondernotenvy.wordpress.com/author/67tyu876/?contact-form-id=354827&contact-form-sent=423508&contact-form-hash=29708163069e051c2cedf8af7b9d265502340782&_wpnonce=4888aa915e https://highschoolhouseparty.com/weckingball-push-up-contest/?unapproved=370920&moderation-hash=c2a181824eb8e7e01920f1c255de851d#comment-370920 http://naturalbodybuilding.ru/ru/node/13885#comment-359355 https://highschoolhouseparty.com/weckingball-push-up-contest/?unapproved=370921&moderation-hash=8efa9c70fca5232a9d243c3a1d426937#comment-370921 http://naturalbodybuilding.ru/ru/node/13885#comment-359354 http://printconverting.com/it/node/331334 http://tankcleaner.net/blog/2018/04/07/dioctyl-phthalate-dop-manuafacturer-and-supplier-india-middle-eastuae-singapore?page=2107#comment-105914
    http://gaycommunity.vip/viewtopic.php?f=9&t=3323 http://wafnobi.com/comm/viewtopic.php?f=2&t=229323 http://philippe.payro.free.fr/forum/viewtopic.php?f=2&t=114553 http://sfpolicedepartment.altervista.org/forum/viewtopic.php?f=2&t=12978 http://rznklad.ru/viewtopic.php?f=26&t=75622 http://protee.guru/viewtopic.php?f=8&t=2332010 https://studentskorner.com/showthread.php?tid=19668 https://mywork2.ru/speak/viewtopic.php?f=2&t=544764 https://www.nflmessageboard.com/showthread.php?tid=99348 https://sieuthimini.net/viewtopic.php?f=2&t=3409 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=10633&p=210853#p210853 http://ictopschool.one/forum/index.php/topic,141674.new.html#new http://rznklad.ru/viewtopic.php?f=26&t=75623 http://grassrootsforum.info/viewtopic.php?f=3&t=19095 http://zk-balt.ru/viewtopic.php?f=1&t=6810 https://forum.rioforense.com.br/showthread.php?tid=2447 http://estetikvediyet.com/viewtopic.php?f=8&t=289281 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=441193 http://zk-balt.ru/viewtopic.php?f=1&t=6815 http://ca.gopinball.com/forum/viewtopic.php?f=6&t=472147 http://www.tekmonkey.us/index.php?topic=7322.new#new https://www.nflmessageboard.com/showthread.php?tid=99362 http://discustorming.com/viewtopic.php?f=2&t=111543 http://cyberweb.pt/viewtopic.php?f=3&t=37354 https://teedinzone.com/webboard/index.php?topic=77370.new#new

Leave a Reply

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