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.

    8528893494268881569665681905613
    https://www.html5videobank.com/community/showthread.php?tid=56682 https://jeffreykett.wordpress.com/?contact-form-id=188&contact-form-sent=309303&contact-form-hash=c4849295e98b75433412d5073a3177e534e47aba&_wpnonce=937c42fd5a https://www.kahawatungu.com/contact-us/?contact-form-id=202&contact-form-sent=177003&contact-form-hash=fa83a8d0c292f6b4f9e3738f13972e1141fa1d6e&_wpnonce=fe32803873 https://test.club-irbis.ru/viewtopic.php?pid=461972 https://noblenetworks.co.uk/showthread.php?tid=6530&pid=8548#pid8548 https://q8mazad.com/vb/showthread.php?p=3285007&posted=1#post3285007 http://naturalbodybuilding.ru/ru/node/26352#comment-361918 http://spruance.net/viewtopic.php?f=1&t=99597 https://www.successdigestforum.com/viewtopic.php?f=6&t=1855993 https://webboard.auto.sanook.com/forum//smi_preview2.php?site=https://webboard.auto.sanook.com/forum/&ID_BOARD=497&ID_TOPIC=11805664&ID_MSG=30259732 http://metr.by/object/2077802 http://printconverting.com/it/node/331369 http://naturalbodybuilding.ru/ru/node/26352#comment-361719 https://webboard.women.sanook.com/forum//smi_preview2.php?site=https://webboard.women.sanook.com/forum/&ID_BOARD=75&ID_TOPIC=11804914&ID_MSG=30258976 https://www.minexcointalk.com/how-to-make-money-as-a-student-in-the-uk/?unapproved=82225&moderation-hash=c700a5e49d5205ff75fa7ab956b53d8a#comment-82225
    http://kriptoturkiye.org/viewtopic.php?f=34&t=15458 http://www.ankarac.com/index.php/topic,74153.new.html#new https://forum168.com/index.php?topic=7303.new#new http://hiso.club/viewtopic.php?f=12&t=30702&p=90299#p90299 http://nauc.info/forums/viewtopic.php?f=3&t=15747778 http://discustorming.com/viewtopic.php?f=2&t=148398 http://lindner-essen.de/forum/viewtopic.php?f=3&t=2442645 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://smfpt2.smfpt.net/index.php/topic,92148.new.html#new http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=132783&Itemid=194#133065 https://bestrunar.com/board/index.php?topic=21243.new#new http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=525606&sid=b4ca28ea064c6c30dd0132552832cfd3 http://staycationinthe.uk/viewtopic.php?f=11&t=27733 https://traveldiscussions.com/viewtopic.php?f=8&t=104098 http://67.205.147.96/viewtopic.php?f=2&t=46426 http://www.labor-economics.org/forum/viewtopic.php?f=5&t=1701845 http://wafnobi.com/comm/viewtopic.php?f=2&t=278476 http://nauc.info/forums/viewtopic.php?f=3&t=15747012 https://mywork2.ru/speak/viewtopic.php?f=2&t=634458 http://www.division-gaming.net/test2000/index.php/forum/2-welcome-mat/3164033-online-2021#3164033 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=526082&sid=0b1fb1f802de42d4e7a2279a1a40f774 http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=132574&Itemid=194#132856 http://awhole.com/forum/viewtopic.php?f=7&t=98819 http://www.lovebird.it/index.php/forum/pesci/130455-2021#673284 http://www.lovebird.it/index.php/forum/uccelli/130365-2021-hd-1080#673194
    https://www.djangoboards.com/boards/1/topics/259735/ https://www.successdigestforum.com/viewtopic.php?f=6&t=1856134 https://audiosellerz.com/forums/showthread.php?tid=175102 http://ytubetalk.com/viewtopic.php?f=14&t=33679 http://gimpel.ru/reviews#comment-176451 https://sabettingforum.com/forum-3/topic/zzcnjnmk https://www.source-forum.com/showthread.php?tid=159697 https://homment.com/NXcEpdNQxkIhOzux4Hm4 http://metr.by/object/2079207 http://plainnuts.com/showthread.php?tid=172397 http://avaya.newsystems.ru/forum/messages/forum1/topic213892/message231339/?result=new https://www.successdigestforum.com/viewtopic.php?f=6&t=1855751 http://naturalbodybuilding.ru/ru/node/26352#comment-361498 https://ninerp.com/forums/showthread.php?tid=106476 https://audiosellerz.com/forums/showthread.php?tid=174838
    http://sfpolicedepartment.altervista.org/forum/viewtopic.php?f=2&t=23163 http://nauc.info/forums/viewtopic.php?f=3&t=15748005 http://daggerbay.com/forum/viewtopic.php?f=5&t=75855 http://www.onlinexmassage.com/viewtopic.php?f=56&t=98474 http://barcelonaforum.ru/obschii-2/programmirovanie-kontrollerov-913/index2600.html#post352503 https://jimhelton.com/viewtopic.php?f=2&t=240258 http://www.driverconnection.net/forums/viewtopic.php?pid=267723#p267723 http://hollymariecombs.info/forum/viewtopic.php?f=19&t=2395119 http://nauc.info/forums/viewtopic.php?f=3&t=15752885 http://estetikvediyet.com/viewtopic.php?f=8&t=360105 https://www.fxforecasting.com/viewtopic.php?f=5&t=20173 https://medalladehonor.cl/foro/index.php?/topic/593295-%D0%B1%D0%BE%D1%81%D1%81-%D0%BC%D0%BE%D0%BB%D0%BE%D0%BA%D0%BE%D1%81%D0%BE%D1%81-%D1%81%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C-%D0%BE%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD-%E2%8B%87-%D0%B1%D0%BE%D1%81%D1%81-%D0%BC%D0%BE%D0%BB%D0%BE%D0%BA%D0%BE%D1%81%D0%BE%D1%81-%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%BE%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD-%C2%BB-watch/ http://www.ankarac.com/index.php/topic,74165.new.html#new https://roqstech.de/viewtopic.php?f=4&t=1397348&p=2674111#p2674111 http://protee.guru/viewtopic.php?f=8&t=2515933 https://ufarms.ru/viewtopic.php?f=3&t=12713 http://nauc.info/forums/viewtopic.php?f=3&t=15750146 http://wafnobi.com/comm/viewtopic.php?f=2&t=278578 http://club66s.com/forum/viewtopic.php?f=2&t=258643 http://smfpt2.smfpt.net/index.php/topic,91890.new.html#new https://forum.nebula-galaxia.de/viewtopic.php?f=2&t=555508 http://fromateakdeck.com/forum/viewtopic.php?f=4&t=101548 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=10633&p=236859#p236859 http://lindner-essen.de/forum/viewtopic.php?f=3&t=2442836 http://www.lovebird.it/index.php/forum/sessaggio-molecolare-con-bioingentech-commenti/130771-2021-watch#673600

Leave a Reply

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