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.

    4579263916108881569516133045952
    http://metr.by/object/2083049 https://mobililenakit.com/showthread.php?tid=8077&pid=42882#pid42882 https://www.successdigestforum.com/viewtopic.php?f=10&t=37954&p=3313515#p3313515 https://redjester.org/forums/showthread.php?tid=30434 http://www.holistichappinessblog.com/apple-cheddar-kale-salad/?unapproved=1653200&moderation-hash=0ceb528eaad4b68ae65c3f7a2ed275bc#comment-1653200 https://guillaumekasbarian.fr/community/topic/vpiyquaj/#postid-608254 https://www.successdigestforum.com/viewtopic.php?f=6&t=1857090 http://behindthebrilliance.com/behind-brilliance-72-list-2016/?unapproved=146772&moderation-hash=65a582a96638f043ca6170981a390051#comment-146772 http://kelvindavies.co.uk/forum/viewtopic.php?f=2&t=2200032&sid=bb98bf9518588b1f5a5554713cd8ce0e https://webboard.guru.sanook.com/forum//smi_preview2.php?site=https://webboard.guru.sanook.com/forum/&ID_BOARD=561&ID_TOPIC=11807926&ID_MSG=30262018 https://pluginhut.com/showthread.php?tid=35224&pid=36287#pid36287 http://plainnuts.com/showthread.php?tid=172432 https://jewelant.wordpress.com/?contact-form-id=28881&contact-form-sent=564112&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=31a83751ce https://cp77forum.com/showthread.php?tid=53824&pid=106982#pid106982 http://www.uthora.com/showthread.php?tid=7197&pid=92140#pid92140
    https://forum.uhleague.ru/viewtopic.php?f=14&t=33871 http://uoleps.co.uk/viewtopic.php?f=19&t=8584 http://awhole.com/forum/viewtopic.php?f=7&t=98760 http://srdon.ru/forum/index.php?topic=7166.new#new http://nauc.info/forums/viewtopic.php?f=3&t=15747646 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=530083&sid=0699de140aec0ba82023e867d16bbd6d http://nauc.info/forums/viewtopic.php?f=3&t=15754920 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=528368&sid=2c0bcd5fd99f512d437f446c1cf9b127 http://intersavegame.co.uk/phpBB/viewtopic.php?f=3&t=1925212 http://madisonsongwriterscircle.com/viewtopic.php?f=5&t=78755 http://nauc.info/forums/viewtopic.php?f=3&t=15760273 http://nauc.info/forums/viewtopic.php?f=3&t=15764341 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=470598 http://www.bragaburgerq.com.br/whatspedidos/forum/viewtopic.php?f=3&t=34228 http://calvarychapeljoco.com/new/index.php/forum/welcome-mat/1247777-2021-1080#1247746 http://nauc.info/forums/viewtopic.php?f=3&t=15747720 https://teedinzone.com/webboard/index.php?topic=117338.new#new http://nauc.info/forums/viewtopic.php?f=3&t=15762023 https://prisaoinvisivel.com.br/forum/viewtopic.php?f=17&t=1037624 https://freeride24.ucoz.ru/forum/8-245-4#4646 https://www.roqstech.de/viewtopic.php?f=4&t=1397348&p=2676031#p2676031 http://hiso.club/viewtopic.php?f=12&t=30702&p=90295#p90295 https://prisaoinvisivel.com.br/forum/viewtopic.php?f=17&t=1037073 https://setcommunication.net/showthread.php?tid=30226&pid=35586#pid35586 http://www.labor-economics.org/forum/viewtopic.php?f=5&t=1703035
    https://ninerp.com/forums/showthread.php?tid=107750 https://ausupreme.com/mavista/cms/en/contact-us?ticket=VTMDJUJXGK1622685681912 http://naturalbodybuilding.ru/ru/node/26352#comment-361751 http://portfoliosuperkayra.appspot.com/1223126833 http://metr.by/object/2080584 https://drchdietfood.com/contact-us/?contact-form-id=115&contact-form-sent=72774&contact-form-hash=c6512087d731c07fc94f85f1dd7002bc31f64e81&_wpnonce=9842b2f3e0 http://forum.12sky2.online/index.php?/topic/519-stayhome-now/page/2650/#comment-1149293 https://oncolog.biz/forum-2/topic/ggjdpqgt/#postid-5009 https://tracker.jimmyj.club/viewtopic.php?p=85273#85273 https://matrixworlds.ucoz.ru/forum/5-2-198#29575 http://naturalbodybuilding.ru/ru/node/13885#comment-361211 http://www.holistichappinessblog.com/apple-cheddar-kale-salad/?unapproved=1652890&moderation-hash=2404c4c1e2a84fdd11d0a1d2111665a6#comment-1652890 http://metr.by/object/2078383 https://knifeguru.ru/forum/messages/forum1/topic3/message83026/?result=reply#message83026 https://www.successdigestforum.com/viewtopic.php?f=6&t=1860159
    http://aquaomega.net/index.php/topic,51716.new.html#new http://nauc.info/forums/viewtopic.php?f=3&t=15759724 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=530933&sid=59b8e23b4979eb62393e32a71557b042 http://www.lovebird.it/index.php/forum/pesci/130315-117-117-2021#673144 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=10633&p=238558#p238558 https://jimhelton.com/viewtopic.php?f=2&t=244310 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=529967&sid=a6e117cd3e3042053a3da5a987d95fbf https://bestrunar.com/board/index.php?topic=21267.new#new http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=405261 http://nauc.info/forums/viewtopic.php?f=3&t=15758013 http://smfpt2.smfpt.net/index.php/topic,93364.new.html#new http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2719765 http://nauc.info/forums/viewtopic.php?f=3&t=15752719 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=528952&sid=ef2e488f1ec076dfd93dea1e7548dd98 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=9928&p=237863#p237863 http://palais.beesims.com/phpbb/viewtopic.php?f=4&t=86672 https://watchmoviesonlinenow.org/index.php/topic,24788.new.html#new http://israelidebate.com/opinions/viewtopic.php?f=3&t=1503085 https://forum.wdwnorth.com/viewtopic.php?f=4&t=197571 https://forum.ebvalaim.pl/viewtopic.php?f=13&t=11029 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2719227 http://www.15forum.com/showthread.php?tid=419943&pid=899158#pid899158 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=524781&sid=e80a1189c728926abdc6e5cac5080cf2 http://www.driverconnection.net/forums/viewtopic.php?pid=267990#p267990 https://teedinzone.com/webboard/index.php?topic=118333.new#new

Leave a Reply

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