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.

    50656252952226375086124408
    https://forum.rioforense.com.br/showthread.php?tid=5701&pid=7060#pid7060 https://jewelant.wordpress.com/?contact-form-id=28881&contact-form-sent=565137&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=8a48713c43 http://www.chopchopmoocs.com/topic-5-observation-analogy/?unapproved=79225&moderation-hash=e18fd8cfee0ab399b1a3ace5813790b0#comment-79225 https://adammaarschalk.com/about/?contact-form-id=2&contact-form-sent=352743&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=c3f8cec531 https://52.78.224.240/viewtopic.php?f=33&t=48816 http://krikstynoms.lt/idejos-krikstynoms/kaip-puostis-krikstynoms?page=2741#comment-192721 http://xn--80ajgfwchmneec5bzj.xn--p1ai/index.php/classifieds/automotive/ad/dhafx,155161 https://www.successdigestforum.com/viewtopic.php?f=6&t=1874271 https://www.successdigestforum.com/viewtopic.php?f=6&t=1874290 https://www.successdigestforum.com/viewtopic.php?f=6&t=1874283 http://va2na.com/forum/viewtopic.php?f=2&t=187059 http://188.165.51.17/blog/387482 http://ru.evbud.com/projects/2885115/ http://metr.by/object/2101237 https://sextingsite.com/viewtopic.php?f=15&t=496007
    https://tfa-sl.com/viewtopic.php?f=9&t=36344 http://chinacar.kiev.ua/chery-tiggo/2369-obitel-straha-smotret-onlain-v-horoshem-kachestve-188.html#post371303 http://forum.hilfe-fuer-marco.de/news-allgemein-f64/%C2%AB%D0%9A%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-%C2%BB-%E2%96%B5-%D1%81%D0%BC%D0%BE-t51585.html http://nauc.info/forums/viewtopic.php?f=3&t=15847596 http://nauc.info/forums/viewtopic.php?f=3&t=15847595 http://nauc.info/forums/viewtopic.php?f=3&t=15847591 http://nauc.info/forums/viewtopic.php?f=3&t=15847598 http://whsicilia.altervista.org/viewtopic.php?f=2&t=26687 http://nauc.info/forums/viewtopic.php?f=3&t=15847605 http://swiadomyprojektant.pl/forum/viewtopic.php?f=23&t=13918 http://nauc.info/forums/viewtopic.php?f=3&t=15847608 http://barcelonaforum.ru/obschii-2/programmirovanie-kontrollerov-913/index2860.html#post362189 http://cyberweb.pt/viewtopic.php?f=3&t=79485 http://www.tekmonkey.us/index.php?topic=22943.new#new https://forum.btcpbrand.com/viewtopic.php?f=4&t=1013969 https://www.emrald.de/forum/viewtopic.php?f=3&t=830638 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=10633&p=250265#p250265 http://protee.guru/viewtopic.php?f=8&t=2581882 http://estetikvediyet.com/viewtopic.php?f=8&t=373898 https://bitcoinlove.ca/forum/viewtopic.php?f=3&t=15934 http://protee.guru/viewtopic.php?f=8&t=2581887 http://roadragenz.com/forum/viewtopic.php?f=27&t=1189225 http://sayandxclub.ru/forum/viewtopic.php?f=8&t=15077 https://congnghetuonglai.vn/forum/viewtopic.php?f=38&t=256643 http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=421251
    http://metr.by/object/2101201 http://metr.by/object/2101213 https://www.kasanet.pl/thread-10181.html https://www.minexcointalk.com/how-to-make-money-as-a-student-in-the-uk/?unapproved=83016&moderation-hash=35776829693cc1fa7ae6903b277ce38b#comment-83016 http://naturalbodybuilding.ru/ru/node/13885#comment-381181 https://suppliertynews.com/contact/?contact-form-id=3&contact-form-sent=73094&contact-form-hash=35d9cdd79d171c4ff22c7543d3323a5594b1cad2&_wpnonce=c67a2d5d7f http://forum.kraspivo.ru/viewtopic.php?f=6&t=114077 http://sexnzb.com/ytzfzrrz-t602324.html https://tomhuff.wordpress.com/about/?contact-form-id=2&contact-form-sent=695787&contact-form-hash=c426da521d31d5406fd89c0578178c19369e58a8&_wpnonce=3e11a1f57e http://forum.vp-net.ro/showthread.php?tid=132&pid=46922#pid46922 https://ausupreme.com/mavista/cms/en/contact-us?ticket=FQHNDTFZTD1622862709355 https://valgemetsa.eu/gallery/pildid/?unapproved=16200&moderation-hash=89a3233593016e2bf83fb47ec0a6c4ba#comment-16200 http://naturalbodybuilding.ru/ru/node/13885#comment-381184 http://metr.by/object/2101225 https://kusbaz.ru/viewtopic.php?f=45&t=225335
    http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=421254 http://melevistas.com/viewtopic.php?f=4&t=1876288 http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=421258 http://savevernazza.com/forum/?mingleforumaction=viewtopic&t=599741#postid-330120 http://melevistas.com/viewtopic.php?f=4&t=84102&p=3143503#p3143503 http://www.blenderturkiye.com/viewtopic.php?f=13&t=955090 http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=421263 http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=421266 http://nauc.info/forums/viewtopic.php?f=3&t=15847637 http://nauc.info/forums/viewtopic.php?f=3&t=15847642 http://philippe.payro.free.fr/forum/viewtopic.php?f=2&t=151536 http://protee.guru/viewtopic.php?f=8&t=2581891 http://nauc.info/forums/viewtopic.php?f=3&t=15847655 http://nauc.info/forums/viewtopic.php?f=3&t=15847664 http://nauc.info/forums/viewtopic.php?f=3&t=15847667 http://www.voxelpunk.com/forum/viewtopic.php?f=4&t=15909 http://www.school36-tambov.ru/forum/viewtopic.php?f=17&t=484484 http://www.cbr650.net/viewtopic.php?f=11&t=17506 http://whsicilia.altervista.org/viewtopic.php?f=2&t=26688 http://discustorming.com/viewtopic.php?f=2&t=160504 http://www.wasasando.com/viewtopic.php?f=31&t=55480 http://lasertrace.nl/forum/viewtopic.php?f=6&t=1206512 http://staycationinthe.uk/viewtopic.php?f=11&t=34183 http://zatoxgaming.org/forums/viewtopic.php?f=5&t=738254 http://sound-book.net/viewtopic.php?f=5&t=47691

Leave a Reply

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