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.

    684333383222637292452392
    https://www.hercommonthread.com/2019/02/04/a-new-chapter/?unapproved=128338&moderation-hash=f65923d3e6c122aabbdd53f71fdb092b#comment-128338 https://forum.cctvtechforum.com/Thread-yduzbkfn https://toptoursmongolia.com/kharakhorum-erdene-zuu-monastery/?unapproved=1033425&moderation-hash=0143aa00b99f47a943f50c68d5d11b42#comment-1033425 https://www.successdigestforum.com/viewtopic.php?f=6&t=1865072 https://www.successdigestforum.com/viewtopic.php?f=6&t=1865081 https://www.successdigestforum.com/viewtopic.php?f=6&t=1865075 http://benjamindinh.fr/forum/showthread.php?tid=796249 http://mbrito.uosdesigndegrees.com/mybb/showthread.php?tid=753420 http://forum.kraspivo.ru/viewtopic.php?f=6&t=112936 http://pulsar-forum.pl/showthread.php?tid=232467 http://va2na.com/forum/viewtopic.php?f=2&t=185739 http://ru.evbud.com/projects/2874320/ http://metr.by/object/2089025 http://www.forum.lezajsk.pl/showthread.php?tid=6969 https://drchdietfood.com/contact-us/?contact-form-id=115&contact-form-sent=72938&contact-form-hash=c6512087d731c07fc94f85f1dd7002bc31f64e81&_wpnonce=7c195cb395
    https://bitcoinlove.ca/forum/viewtopic.php?f=3&t=6764 http://hollymariecombs.info/forum/viewtopic.php?f=19&t=2382981 http://hollymariecombs.info/forum/viewtopic.php?f=19&t=2382982 https://teedinzone.com/webboard/index.php?topic=81713.new#new http://protee.guru/viewtopic.php?f=8&t=2352383 http://banglaforum.net/forum/viewtopic.php?f=29&t=378532 http://smartreport.tech/forum/showthread.php?tid=4065 http://generator.altervista.org/viewtopic.php?f=2&t=10236 http://protee.guru/viewtopic.php?f=8&t=2352386 http://forum.vp-net.ro/showthread.php?tid=7454&pid=27913#pid27913 http://melevistas.com/viewtopic.php?f=4&t=1790737 http://hiso.club/viewtopic.php?f=12&t=31653&p=51012#p51012 http://smfpt2.smfpt.net/index.php/topic,71838.new.html#new http://gaycommunity.vip/viewtopic.php?f=9&t=4108 https://traveldiscussions.com/viewtopic.php?f=8&t=71271 https://bbwhirlwind.online/viewtopic.php?f=2&t=238485 http://smfpt2.smfpt.net/index.php/topic,71839.new.html#new http://cowclan.nl/thread-6547.html http://uoleps.co.uk/viewtopic.php?f=19&t=4738 http://calvarychapeljoco.com/new/index.php/forum/welcome-mat/1206574-2021#1206542 http://hiso.club/viewtopic.php?f=12&t=31653&p=50993#p50993 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=53375&p=213266#p213266 https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=338365 http://hiso.club/viewtopic.php?f=12&t=31855 http://grimpe44.free.fr/topo/fluxbb/viewtopic.php?pid=65268#p65268
    http://www.clipscity.com/blog/72418 https://carmenego.wordpress.com/?contact-form-id=2&contact-form-sent=295822&contact-form-hash=01f6d8ef4328785cb0aff80b826b83ef674c7e8a&_wpnonce=f66a333d8d https://europeanmemories.net/magazine/memory-a-hinge-between-past-and-present/?unapproved=16040&moderation-hash=5d1135631267ee592037c24611e34263#comment-16040 http://kinomozg.club/topic/127-mail-addurl/?page=8319#comment-147846 https://europeanmemories.net/magazine/memory-a-hinge-between-past-and-present/?unapproved=16041&moderation-hash=1aedf19dc762d09ffe8550a089da5b68#comment-16041 https://www.source-forum.com/showthread.php?tid=161395 https://razvodnya.ru/viewtopic.php?f=2&t=6963&p=25374#p25374 https://michaelmcgrinder.com/?contact-form-id=769&contact-form-sent=151839&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=a6486b112b https://webboard.men.sanook.com/forum//smi_preview2.php?site=https://webboard.men.sanook.com/forum/&ID_BOARD=537&ID_TOPIC=11816554&ID_MSG=30270712 https://shortcels.co/index.php?/topic/139285-vctgptoy/ http://beta.cqpolska.pl/showthread.php?tid=107772&pid=314774#pid314774 http://metr.by/object/2089035 http://naturalbodybuilding.ru/ru/node/26352#comment-370475 https://ninerp.com/forums/showthread.php?tid=109553 https://matrixworlds.ucoz.ru/forum/5-2-208#29732
    http://www.cbr650.net/viewtopic.php?f=11&t=9013 http://israelidebate.com/opinions/viewtopic.php?f=3&t=1304028 https://forum.btcpbrand.com/viewtopic.php?f=4&t=987203 http://67.205.147.96/viewtopic.php?f=2&t=4151&p=45471#p45471 https://ninerp.com/forums/showthread.php?tid=80387 http://gaycommunity.vip/viewtopic.php?f=9&t=4109 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=10633&p=213263#p213263 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=449843 http://forum.pokerfishka.com/main/9-10max/219785-akademiya-monstrov-smotret-onlajn-akademiya-monstrov-film-2021-smotret-onlajn-v-vysokom-kachestve#222536 http://israelidebate.com/opinions/viewtopic.php?f=3&t=1304039 https://www.jerkforfans.com/Forum/viewtopic.php?f=24&t=10480 https://traveldiscussions.com/viewtopic.php?f=8&t=71237 http://gaycommunity.vip/viewtopic.php?f=9&t=4110 https://knifeguru.ru/forum/messages/forum1/topic3/message72643/?result=reply#message72643 https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=338373 http://avaya.newsystems.ru/forum/messages/forum1/topic197568/message210072/?result=new https://www.wohnprojekt2026.de/forum/viewtopic.php?f=8&t=97357 http://israelidebate.com/opinions/viewtopic.php?f=3&t=1304019 https://bitcoinlove.ca/forum/viewtopic.php?f=3&t=6766 http://smfpt2.smfpt.net/index.php/topic,71840.new.html#new https://mywork2.ru/speak/viewtopic.php?f=2&t=570476%22/ https://www.html5videobank.com/community/showthread.php?tid=41896&pid=282511#pid282511 http://israelidebate.com/opinions/viewtopic.php?f=3&t=1304042 http://www.myacnestory.sg/forum/viewtopic.php?f=6&t=7913 http://hollymariecombs.info/forum/viewtopic.php?f=19&t=2382984

Leave a Reply

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