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.

    1289792065488881569321151106608
    https://free-pc-help.ru/melochi/shop-script-i-znaki-voprosa-pri-importe-bazy-mysql/comment-page-150/?unapproved=108382&moderation-hash=388322beec925010f6a3ee188674441a#comment-108382 http://www.iyc-mitsu.de/forum/informatives/2019—-k2_895.htm?page=579#p5785 https://www.successdigestforum.com/viewtopic.php?f=6&t=1856560 https://sabettingforum.com/forum-3/topic/xtvksxmd https://audiosellerz.com/forums/showthread.php?tid=176542 http://www.warrenrodwell.com/2015/04/read-the-book-up-to-you/read-the-book-csp/?unapproved=38181&moderation-hash=257f35e078dd4305dd2d6681bcc37063#comment-38181 https://forum.cctvtechforum.com/Thread-estcrdfu https://sextingsite.com/viewtopic.php?f=15&t=489098 http://ru.evbud.com/projects/2871993/ http://kharkovforum.com.ua/viewtopic.php?f=11&t=299022 https://sextingsite.com/viewtopic.php?f=15&t=488221 http://naturalbodybuilding.ru/ru/node/26352#comment-364334 https://www.successdigestforum.com/viewtopic.php?f=6&t=1855857 https://www.heliomariano.adv.br/o-novo-bacenjud-em-5-topicos/?unapproved=190523&moderation-hash=8e8e0b11d94e0f79183a026fb6087c6c#comment-190523 https://forum.cctvtechforum.com/Thread-ntlsycxh
    http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2719227 http://nauc.info/forums/viewtopic.php?f=3&t=15762819 https://logoushka.ru/viewtopic.php?f=5&t=15413 http://labor-economics.org/forum/viewtopic.php?f=5&t=1701790 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=526212&sid=75dfd7a9eefbb017511c8170e6255098 http://lasertrace.nl/forum/viewtopic.php?f=6&t=1171782 https://mywork2.ru/speak/viewtopic.php?f=2&t=636315 http://lindner-essen.de/forum/viewtopic.php?f=3&t=2443960 http://nauc.info/forums/viewtopic.php?f=3&t=15760426 http://discustorming.com/viewtopic.php?f=2&t=148003 http://abc.hiso.club/viewtopic.php?f=12&t=30702&p=91180#p91180 http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=402653 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=526365&sid=009072b1c7cc3b040e3709d7f7745097 http://www.lovebird.it/index.php/forum/animali-smarriti/130335-2021#673164 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=529912&sid=ff35c4b09adcb7275efde593169df6bb http://oleksy-bau.de/index.php/forum/welcome-mat/1016764-2021#1016030 http://nauc.info/forums/viewtopic.php?f=3&t=15758199 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=53953&p=236966#p236966 https://jimhelton.com/viewtopic.php?f=2&t=240252 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=530348&sid=ee7e4a517c06993f398279288992c0d9 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=530213&sid=98ef053ef461dbb73f4836fc8fede0cd http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2718990 https://essens-club.ru/viewtopic.php?f=13&t=12519 http://nauc.info/forums/viewtopic.php?f=3&t=15762687 http://forum.vkportal.ba/viewtopic.php?f=18&t=237&p=44905#p44905
    https://adammaarschalk.com/about/?contact-form-id=2&contact-form-sent=351571&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=71250bd0fb https://www.successdigestforum.com/viewtopic.php?f=6&t=1859667 http://beta.cqpolska.pl/showthread.php?tid=107007&pid=313372#pid313372 https://webboard.music.sanook.com/forum//smi_preview2.php?site=https://webboard.music.sanook.com/forum/&ID_BOARD=351&ID_TOPIC=11803450&ID_MSG=30257488 http://chippingnortonopticians.co.uk/cropped-img_4033-1-jpg/?unapproved=123965&moderation-hash=2cf5c965ac2f1c50336eeac004de6158#comment-123965 http://kharkovforum.com.ua/viewtopic.php?f=11&t=297987 http://naturalbodybuilding.ru/ru/node/13885#comment-361288 http://193167.kharkovf.web.hosting-test.net/viewtopic.php?f=11&t=298207 http://metr.by/object/2082717 https://redjester.org/forums/showthread.php?tid=30434 https://tracker.jimmyj.club/viewtopic.php?p=85601#85601 http://www.anstiss.com/?contact-form-id=widget-text-9&contact-form-sent=310880&contact-form-hash=226da66c92c2bee8af63abc8086fc7e635d09b21&_wpnonce=e83f44bb91 http://va2na.com/forum/viewtopic.php?f=2&t=185248 http://metr.by/object/2078620 http://filmiskane.nu/?page_id=2&unapproved=1529892&moderation-hash=d8a6fefdacd03fe51debbfe836af62b3#comment-1529892
    https://www.festofsailtacoma.com/index.php?topic=209676.new#new http://cyberweb.pt/viewtopic.php?f=3&t=66653 http://nauc.info/forums/viewtopic.php?f=3&t=15751148 http://estetikvediyet.com/viewtopic.php?f=8&t=360265 http://forum.hilfe-fuer-marco.de/news-allgemein-f64/%C2%AB%D0%9F%D0%BE%D0%BB%D0%BD%D0%BE%D0%B5-%D0%BF%D0%BE%D0%B3%D1%80%D1%83%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5-%C2%BB-online-%E2%94%BA–t50507.html http://www.lovebird.it/index.php/forum/sessaggio-molecolare-con-bioingentech-commenti/130321-online-2021#673150 https://wallstreetbets.online/showthread.php?tid=4565&pid=5787#pid5787 http://thalianation.com/viewtopic.php?f=6&t=4984 http://sacovid19solution.com/viewtopic.php?f=3&t=220488 http://labor-economics.org/forum/viewtopic.php?f=5&t=1703066 http://nauc.info/forums/viewtopic.php?f=3&t=15759484 http://roadragenz.com/forum/viewtopic.php?f=27&t=1170324 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=525442&sid=afe6232107b194d58c106b5fb5a5217a http://nauc.info/forums/viewtopic.php?f=3&t=15754848 https://congnghetuonglai.vn/forum/viewtopic.php?f=38&t=239656 https://domtur.com/forums/viewtopic.php?f=3&t=1762 http://ictopschool.one/forum/index.php/topic,206440.new.html#new http://nauc.info/forums/viewtopic.php?f=3&t=15762046 http://labor-economics.org/forum/viewtopic.php?f=5&t=1703878 http://thevms.net/index.php?topic=95732.new#new http://israelidebate.com/opinions/viewtopic.php?f=3&t=1497203 http://bbs.hpc-hp.com/viewtopic.php?f=9&t=37178 https://www.radiopeep.com/forum/viewtopic.php?f=8&t=60&p=92132#p92132 https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=385276 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=470334

Leave a Reply

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