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.

    7594990118048881569901770742269
    http://diagnost.ee/pood/attachment/_13/?unapproved=216330&moderation-hash=f519bbe3e6d96b0e309ffe715a87324f#comment-216330 https://razvodnya.ru/viewtopic.php?f=2&t=6963&p=23861#p23861 http://hsien.com.freehostia.com/viewthread.php?tid=458803&extra=page%3D1 http://forum.naronanews.com/showthread.php?tid=163629&pid=474661#pid474661 http://naturalbodybuilding.ru/ru/node/13885#comment-360055 http://naturalbodybuilding.ru/ru/node/13885#comment-360096 http://plainnuts.com/showthread.php?tid=172380 https://mobililenakit.com/showthread.php?tid=13630 http://chippingnortonopticians.co.uk/cropped-img_4033-1-jpg/?unapproved=123949&moderation-hash=126797066234aa1323bc35acb1de8a33#comment-123949 https://audiosellerz.com/forums/showthread.php?tid=174884 https://forum.kardiolo.pl/topic/30231-kayyrkes/ https://www.successdigestforum.com/viewtopic.php?f=6&t=1855904 https://suppliertynews.com/contact/?contact-form-id=3&contact-form-sent=71792&contact-form-hash=35d9cdd79d171c4ff22c7543d3323a5594b1cad2&_wpnonce=9bab0e4e2c https://q8mazad.com/vb/showthread.php?p=3284639&posted=1#post3284639 https://kebe.top/viewtopic.php?pid=1713468#p1713468
    https://www.coazzette.com/index.php/forum/welcome-mat/207315-2021#350069 http://fortunegreen.com/forum/viewtopic.php?p=170913#170913 http://labor-economics.org/forum/viewtopic.php?f=5&t=1701832 http://nauc.info/forums/viewtopic.php?f=3&t=15749107 http://www.labor-economics.org/forum/viewtopic.php?f=5&t=1701809 http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=402636 https://huntwinnerforum.com/viewtopic.php?f=4&t=63112 http://freelineskate.free.fr/forum/viewtopic.php?f=2&t=134629 http://labor-economics.org/forum/viewtopic.php?f=5&t=1701872 http://ca.gopinball.com/forum/viewtopic.php?f=6&t=512744 http://www.lovebird.it/index.php/forum/roditori/130551-2021#673380 http://cyberweb.pt/viewtopic.php?f=3&t=66776 http://sfpolicedepartment.altervista.org/forum/viewtopic.php?f=2&t=23201 http://gopinball.com/forum/viewtopic.php?f=6&t=512920 http://www.piminigeria.com/index.php/en/forum/welcome-to-pimi-ghana-forum/251636-2021-online#251701 https://congnghetuonglai.vn/forum/viewtopic.php?f=38&t=239076 http://nauc.info/forums/viewtopic.php?f=3&t=15749350 https://www.rustlandgermany.de/viewtopic.php?f=7&t=40383 http://sfpolicedepartment.altervista.org/forum/viewtopic.php?f=2&t=23208 https://medalladehonor.cl/foro/index.php?/topic/593306-%D0%B0%D0%BA%D0%B0%D0%B4%D0%B5%D0%BC%D0%B8%D1%8F-%D0%BC%D0%BE%D0%BD%D1%81%D1%82%D1%80%D0%BE%D0%B2-%D0%BE%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD-%D1%81%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C-%E1%B6%83-%D0%B0%D0%BA%D0%B0%D0%B4%D0%B5%D0%BC%D0%B8%D1%8F-%D0%BC%D0%BE%D0%BD%D1%81%D1%82%D1%80%D0%BE%D0%B2-%D0%BC%D1%83%D0%BB%D1%8C%D1%82-2021-%D0%B3%D0%BE%D0%B4-%D0%BE%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD-%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://www.cbr650.net/viewtopic.php?f=11&t=14708 http://www.grampianstars.com.au/forum/index.php?topic=206754.new#new https://watchmoviesonlinenow.org/index.php/topic,24035.new.html#new http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=524466&sid=6cf4b230fb02e93fa6778f109c5fea5f http://barcelonaforum.ru/obschii-2/programmirovanie-kontrollerov-913/index2596.html#post352306
    http://sexnzb.com/sgcfpahn-t601464.html http://metr.by/object/2077153 https://wondernotenvy.wordpress.com/author/67tyu876/?contact-form-id=354827&contact-form-sent=423584&contact-form-hash=29708163069e051c2cedf8af7b9d265502340782&_wpnonce=a7f9eb8304 http://cafekulinarya.co.uk/?attachment_id=118&unapproved=243382&moderation-hash=b7aef484102491e1e11d3ee4f8fff9fd#comment-243382 http://tanukinoori.sakura.ne.jp/cgi-bin/bbs/bbs.cgi? https://rooftoppros.wordpress.com/?contact-form-id=92&contact-form-sent=958078&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=0cba00ad9f http://chippingnortonopticians.co.uk/cropped-img_4033-1-jpg/?unapproved=123946&moderation-hash=4a5479aee08d872f34b4d7477ae4ef25#comment-123946 https://redjester.org/forums/showthread.php?tid=29900 http://www.la-bottega.pl/forum/viewtopic.php?f=16&t=5134 http://bwgforums.net/showthread.php?tid=27263&pid=159845#pid159845 http://www.basketferentino.com/forum/viewtopic.php?p=2779125#2779125 http://www.onkenyanroads.com/showthread.php?tid=4352&pid=180112#pid180112 https://localfishingchat.com/thread-122424.html http://forum.vp-net.ro/showthread.php?tid=132&pid=43748#pid43748 http://www.diegodicamillo.com.ar/blog/2010/01/29/cant-create-a-new-thread-errno-12-if-you-are-not-out-of-available-memory-you-can-consult-the-manual-for-a-possible-os-dependent-bug/comment-page-1/?unapproved=770188&moderation-hash=17910e68cafebba2ddef03bd315ec46a#comment-770188
    http://awhole.com/forum/viewtopic.php?f=7&t=98782 https://www.fxforecasting.com/viewtopic.php?f=5&t=20038 http://www.lovebird.it/index.php/forum/uccelli/130724-online-2021#673553 https://www.radiopeep.com/forum/viewtopic.php?p=91644 http://sfpolicedepartment.altervista.org/forum/viewtopic.php?f=2&t=23218 http://mohr-tranebjaerg.de/forum/showthread.php?tid=861877 http://www.lovebird.it/index.php/forum/uccelli/130371-2-2-2021#673200 http://svrsps.com/viewtopic.php?f=7&t=74017 http://nauc.info/forums/viewtopic.php?f=3&t=15747853 http://www.lovebird.it/index.php/forum/altri-animali/130756-2021#673585 http://onlinexmassage.com/viewtopic.php?f=56&t=98483 http://nauc.info/forums/viewtopic.php?f=3&t=15747439 http://staycationinthe.uk/viewtopic.php?f=11&t=27730 http://www.school36-tambov.ru/forum/viewtopic.php?f=17&t=469666 http://www.lovebird.it/index.php/forum/pappagalli/130735-4-4-2021#673564 http://sound-book.net/viewtopic.php?f=5&t=41422 https://anonimforum.com/viewtopic.php?f=7&t=3547 http://q8c.net/viewtopic.php?f=2&t=10688 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=524482&sid=4c20cdf0084c483ffe2f76c01e0b7271 https://tg-dst.ru/forum/messages/forum1/topic66/message105398/?result=reply#message105398 http://sound-book.net/viewtopic.php?f=5&t=41466 http://cyberweb.pt/viewtopic.php?f=3&t=66623 https://jimhelton.com/viewtopic.php?f=2&t=239981 https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=383677 http://jdsawyer.net/forums/viewtopic.php?f=3&t=17080

Leave a Reply

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