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.

    15615378022226371306629937
    http://periodicomicasa.com.mx/periodico-mi-casa-enero-2017/?unapproved=26965&moderation-hash=18663f9f2adc2a4c9c8d7c6ec06e5272#comment-26965 http://naturalbodybuilding.ru/ru/node/26352#comment-363893 https://www.studio-tal.com/2/?unapproved=90816&moderation-hash=360ac33031228d7e4eb73b3a2d909173#comment-90816 http://naturalbodybuilding.ru/ru/node/26352#comment-363894 https://sabettingforum.com/forum-3/topic/ncnfgnjf https://www.nflmessageboard.com/showthread.php?tid=107983&pid=212794#pid212794 http://naturalbodybuilding.ru/ru/node/26352#comment-363892 http://www.game-train.de/index.php?task=view&id=133 http://weebbun.com/showthread.php?tid=215226 http://naturalbodybuilding.ru/ru/node/26352#comment-363889 http://gamingrev.com/2010/06/02/forum-is-back-online/?unapproved=68591&moderation-hash=ff5eb3344e54811a77a5b88e2d35e71e#comment-68591 https://www.successdigestforum.com/viewtopic.php?f=6&t=1859201 https://www.nflmessageboard.com/showthread.php?tid=107984 http://naturalbodybuilding.ru/ru/node/26352#comment-363890 http://naturalbodybuilding.ru/ru/node/26352#comment-363900
    http://nauc.info/forums/viewtopic.php?f=3&t=15755110 http://xn—-8sble4ao1ag1b8c.online/viewtopic.php?f=21&t=27941 https://essens-club.ru/viewtopic.php?f=13&t=12679 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=470443 http://nauc.info/forums/viewtopic.php?f=3&t=15755119 https://www.fxforecasting.com/viewtopic.php?f=5&t=20254 http://www.tekmonkey.us/index.php?topic=18618.new#new http://sfpolicedepartment.altervista.org/forum/viewtopic.php?f=2&t=23335 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=527572&sid=fb263e27519ffb6fca14296347f8c067 https://tictocbay.com/viewtopic.php?f=19&t=9265 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=470445 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=527573&sid=fde915b366607e89a1104eac0dd2ce7d http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=527575&sid=f1947b86d2d8d9be087dc75c764d2e69 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=527576&sid=04c174255939a0c0e4f53bb247709a8e http://www.wafnobi.com/comm/viewtopic.php?f=2&t=278873 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=470446 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=527582&sid=70cacc67d692ff62507f8904d39d9c4c http://israelidebate.com/opinions/viewtopic.php?f=3&t=1497211 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2718822 https://paybackking.com/forum/viewtopic.php?f=8&t=18768 https://www.wohnprojekt2026.de/forum/viewtopic.php?f=8&t=99142 http://discustorming.com/viewtopic.php?f=2&t=148482 http://nauc.info/forums/viewtopic.php?f=3&t=15755124 http://protee.guru/viewtopic.php?f=8&t=2517620 http://forum.pokerfishka.com/main/9-10max/227399-kot-pod-prikrytiem-online-kot-pod-prikrytiem-film-2021-goda-onlajn-s-subtitrami#230223
    https://www.heliomariano.adv.br/o-novo-bacenjud-em-5-topicos/?unapproved=190565&moderation-hash=8d8c3c7e9e85300eef372ad4bf377d41#comment-190565 http://naturalbodybuilding.ru/ru/node/26352#comment-363901 http://naturalbodybuilding.ru/ru/node/26352#comment-363902 http://www.mer-pcr.com/?unapproved=325357&moderation-hash=0abc63befa622f25b66d5f0207165932#comment-325357 http://tankcleaner.net/blog/2018/04/07/dioctyl-phthalate-dop-manuafacturer-and-supplier-india-middle-eastuae-singapore?page=2108#comment-105981 http://www.mer-pcr.com/?unapproved=325358&moderation-hash=9f4ecad7e947e3670028e96993ef72bb#comment-325358 https://www.hercommonthread.com/2019/02/04/a-new-chapter/?unapproved=128147&moderation-hash=e8090318cddb6932e78549fe53ced474#comment-128147 http://chippingnortonopticians.co.uk/cropped-img_4033-1-jpg/?unapproved=124320&moderation-hash=e0cc27d656108d2ec22424e6b219007c#comment-124320 https://www.successdigestforum.com/viewtopic.php?f=6&t=440432&p=3311450#p3311450 http://xn--80ajgfwchmneec5bzj.xn--p1ai/index.php/classifieds/automotive/ad/dhafx,154071 https://sextingsite.com/viewtopic.php?f=15&t=489176 http://elpregonero.mx/math-problem-solving-activities-pinterest/?unapproved=1574721&moderation-hash=96d6d9f87af7b5bc67ede85c60452b23#comment-1574721 http://elpregonero.mx/math-problem-solving-activities-pinterest/?unapproved=1574722&moderation-hash=393c2ea0a098c7bd5b8916703c1d6d9c#comment-1574722 https://www.successdigestforum.com/viewtopic.php?f=11&t=15186&p=3311451#p3311451 http://alazharelectware.com/index.php?option=com_kunena&view=topic&catid=2&id=935305&Itemid=314#935242
    http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=527585&sid=4cf5148d107044eddcbe3f386d4f23b4 https://watchmoviesonlinenow.org/index.php/topic,24614.new.html#new https://forum.nebula-galaxia.de/viewtopic.php?f=2&t=556609 http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=133038&Itemid=194#133320 http://renasforum.com/showthread.php?tid=1296 http://nauc.info/forums/viewtopic.php?f=3&t=15755130 http://nauc.info/forums/viewtopic.php?f=3&t=15755126 http://www.driverconnection.net/forums/viewtopic.php?pid=267942#p267942 http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=133039&Itemid=194#133321 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=470448 http://www.myacnestory.sg/forum/viewtopic.php?f=6&t=12985 http://israelidebate.com/opinions/viewtopic.php?f=3&t=1497215 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=527588&sid=c9dc13413fc2264e39b31a11dacdd4b2 https://forum.s37h.com/showthread.php?tid=519 http://nauc.info/forums/viewtopic.php?f=3&t=15755137 https://bitcoinlove.ca/forum/viewtopic.php?f=3&t=12535 http://voxland.org.uk/samunda/viewtopic.php?f=11&t=10075 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2718825 http://www.school36-tambov.ru/forum/viewtopic.php?f=17&t=470451 http://www.driverconnection.net/forums/viewtopic.php?pid=267943#p267943 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=527591&sid=2e3e8c86c97abeed365d2fbcf954998e https://huntwinnerforum.com/viewtopic.php?f=4&t=63272 http://nauc.info/forums/viewtopic.php?f=3&t=15755133 http://intersavegame.co.uk/phpBB/viewtopic.php?f=3&t=1925376 http://forum.kopkon.ru/viewtopic.php?f=1&t=29708

Leave a Reply

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