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.

    apfqbmdsg1fqkbud
    https://flashmag.tn/contact/?contact-form-id=20&contact-form-sent=179393&contact-form-hash=c348eb28802c8ed0086fe78833a28285c7557b7b&_wpnonce=56928f8a18
    http://wbiaohome.net/forum.php?mod=viewthread&tid=105186&extra=
    http://9month.ru/forum/showthread.php?435886-eemiephf&p=986723#post986723
    https://kusbaz.ru/viewtopic.php?f=45&t=171126
    http://forumz.fearnode.net/general-discussion/900428335/okougvsx
    http://tv-pul.ru/communication/viewtopic.php?f=23&t=1686700
    http://www.triadbattle.com/forum/viewtopic.php?f=1&t=663804&p=1054196#p1054196
    http://forumz.fearnode.net/general-discussion/900428337/nefbyecs
    http://pandarion-wow.com/forum/viewtopic.php?f=9&t=261204
    http://rege-ev.de/distribution/viewtopic.php?f=7&t=25257
    http://articool.ru/node/4#comment-71197
    https://www.corporateradiosucks.com/forum/showthread.php?72904-qlvuqnrj&p=340944#post340944
    https://ternate.karantina.pertanian.go.id/forum/viewtopic.php?pid=423422#p423422
    http://christmas.regenbogenwiese.net/index.php?guestbook-entry/5011133-ochpqiss/
    https://chronobns.boardhost.com/viewtopic.php?pid=204475#p204475
    http://djzone.hu/2019/10/21/egy-evvel-kesobb/comment-page-317/#comment-706456
    http://my.jurnalotaku.com/contact-us/?contact-form-id=2755&contact-form-sent=276241&_wpnonce=0a36606be0
    http://printconverting.com/it/node/224177
    http://forum.matindvd.ir/viewtopic.php?pid=47789#p47789
    http://regenboogkabouters.messageboard.nl/forum/viewtopic.php?f=15&t=956944
    http://www.stellar-impact.com/forum/viewtopic.php?f=3&t=2490128
    http://forumv.fearnode.net/general-discussion/900428341/smdgsmle
    http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=9928&p=43481#p43481
    http://www.0755pylt.com/forum.php?mod=viewthread&tid=576&pid=706797&page=1049&extra=page%3D1#pid706797
    http://valgemetsa.eu/gallery/pildid/?unapproved=824965&moderation-hash=d4fc21d59f0d8dcbf41eebad607bec1a#comment-824965
    http://35.192.30.48/index.php/topic,17455.new.html#new
    http://manner.gain.tw/viewthread.php?tid=1721494&extra=
    https://www.coronaforo.com/viewtopic.php?f=3&t=58583
    http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2342059
    http://pistonpowercarclub.co.uk/index.php?topic=8597.new#new
    https://www.smzsf.com/thread-16836-1-1.html
    http://www.problogger.my/community/viewtopic.php?f=14&t=32923
    http://www.estudiandoenmadres.com.ar/foro/index.php?topic=47533.new#new
    http://forum.18girls.org/showthread.php?tid=59962
    http://manner.gain.tw/viewthread.php?tid=1721504&extra=
    https://camp-market.ru/forum/messages/forum1/topic120/message2948/?result=reply#message2948
    http://www.israelru.botvinik.net/forum/viewtopic.php?f=19&t=2907
    https://prisaoinvisivel.com.br/forum/viewtopic.php?f=17&t=237288
    https://higginsgaming.com/viewtopic.php?f=8&t=187566
    https://capbiz.su/index.php?/topic/328786-ditia-pogody-multfilm-smotret-polnostiu/
    http://leeightontalksaboutpokemon.net/forums/showthread.php?54317-%D0%A0%E2%80%9D%D0%A0%D1%91%D0%A1%E2%80%9A%D0%A1%D0%8F-%D0%A0%D1%97%D0%A0%D1%95%D0%A0%D1%96%D0%A0%D1%95%D0%A0%D2%91%D0%A1%E2%80%B9-%D0%A1%D0%83%D0%A0%D1%98%D0%A0%D1%95%D0%A1%E2%80%9A%D0%A1%D0%82%D0%A0%C2%B5%D0%A1%E2%80%9A%D0%A1%D0%8A-%D0%A0%D0%86-%D0%A1%E2%80%A6%D0%A0%D1%95%D0%A1%D0%82%D0%A0%D1%95%D0%A1%E2%82%AC%D0%A0%C2%B5%D0%A0%D1%98-%D0%A0%D1%94%D0%A0%C2%B0%D0%A1%E2%80%A1%D0%A0%C2%B5%D0%A1%D0%83%D0%A1%E2%80%9A%D0%A0%D0%86%D0%A0%C2%B5&p=120424#post120424
    http://www.forumgowes.com/thread-108048.html
    https://www.rubinum.mojkgb.com/forums/viewtopic.php?pid=13399#p13399
    https://rostokfamily.ru/forum/messages/forum1/topic7/message9065/?result=reply#message9065
    http://www.15forum.com/showthread.php?tid=97943&pid=193456#pid193456
    https://www.lewistee.com/forum/viewtopic.php?f=10&t=40884
    http://www.namistt.com/forums/viewtopic.php?f=5&t=198160
    http://wowshop.com.tw/art/forum.php?mod=viewthread&tid=7130&pid=564942&page=27102&extra=#pid564942
    https://board.bmwcarmag.com/index.php?topic=438123.new#new
    https://kqra.com/showthread.php?tid=2860&pid=39491#pid39491
    http://www.triadbattle.com/forum/viewtopic.php?f=1&t=663804&p=1052191#p1052191
    http://regenboogkabouters.messageboard.nl/forum/viewtopic.php?f=15&t=953301
    https://noxious.pw/thread-241241.html
    http://bbs.jpztong.com/forum.php?mod=viewthread&tid=3397&extra=
    http://christmas.regenbogenwiese.net/index.php?guestbook-entry/4977882-%D0%B4%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B-%D1%85%D0%BE%D1%80%D0%BE%D1%88%D0%B0%D1%8F-%D0%BE%D0%B7%D0%B2%D1%83%D1%87%D0%BA%D0%B0/
    https://adminclub.org/Thread-%D0%94%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B-2019-%D0%B2-%D1%85%D0%BE%D1%80%D0%BE%D1%88%D0%B5%D0%BC-%D0%BA%D0%B0%D1%87%D0%B5%D1%81%D1%82%D0%B2%D0%B5
    http://wbiaohome.net/forum.php?mod=viewthread&tid=96997&extra=
    https://www.klucze.co.uk/forum1/Upload/showthread.php?tid=370665
    http://xn--c1akfd5azeb.xn--p1ai/forum/viewtopic.php?f=23&t=956666
    http://alansab.net/forum/showthread.php?p=118243#post118243
    http://skyscrapercity.me/showthread.php?p=625017#post625017
    http://test.windsorpie.com/forum.php?mod=viewthread&tid=686724&extra=
    http://cb44al.com/forum.php?mod=viewthread&tid=20891&extra=
    http://voxsomnia.com/forums/viewtopic.php?f=2&t=879056
    http://www.alcohol-injection.com/forum/showthread.php?t=1173826&p=2832304#post2832304
    https://forum.tenno-inside.com/showthread.php?tid=95019
    http://forum.ustageldi.com/showthread.php?p=9382#post9382
    https://cmaxfanatics.com/forum/showthread.php?p=589085
    https://dashcams.com.br/forum/showthread.php?tid=35609&pid=47781#pid47781
    http://www.10sfw.com/forum.php?mod=viewthread&tid=9441&extra=
    http://forum.2serveothers.com/showthread.php?tid=338517
    https://www.taolv1.com/forum.php?mod=viewthread&tid=2650&extra=
    https://russianmagia.com/viewtopic.php?f=5&t=103741
    https://proverenyemagi.ru/showthread.php?p=21757
    https://18c.se/showthread.php?tid=40564
    http://mbforum.pl/index.php?topic=11753.new#new
    https://moto-otzovik.ru/viewtopic.php?f=4&t=77428
    https://higginsgaming.com/viewtopic.php?f=8&t=187567
    http://forum-eternal.com/forum.php?mod=viewthread&tid=131465&extra=
    https://254gamers.com/community/showthread.php?tid=66515
    http://199cr.com/thread-408344-1-1.html
    https://board.bmwcarmag.com/index.php?topic=438124.new#new
    http://49.231.238.163/board/viewtopic.php?f=3&t=1475251
    http://sayyourown.com/viewtopic.php?f=2&t=21006
    http://62.109.19.197/showthread.php?p=1076213#post1076213
    http://dettochiaramente.it/forum/viewtopic.php?f=118&t=1900
    http://199cr.com/thread-408346-1-1.html
    https://www.proggnosis.com/Forum/topic4147———.aspx?MessageID=4518
    https://sexy-x-rated.us/showthread.php?tid=40959
    http://cryptonews.keyforum.ru/viewtopic.php?f=28&t=151687
    http://cwtr.xyz/forum.php?mod=viewthread&tid=2933&extra=
    http://blueforum.net/viewtopic.php?f=15&t=86178
    https://noxious.pw/thread-241242.html
    https://ternate.karantina.pertanian.go.id/forum/viewtopic.php?pid=410443#p410443
    https://www.fbnewspost.com/index.php/topic,108444.new.html#new
    https://prisaoinvisivel.com.br/forum/viewtopic.php?f=17&t=237289
    http://board.cxejohns.com/viewtopic.php?pid=500082#p500082
    https://1yuz.xyz/showthread.php?43829-%D0%A0%D0%8E%D0%A0%D1%98%D0%A0%D1%95%D0%A1%E2%80%9A%D0%A1%D0%82%D0%A0%C2%B5%D0%A1%E2%80%9A%D0%A1%D0%8A-%D0%A0%E2%80%9D%D0%A0%D1%91%D0%A1%E2%80%9A%D0%A1%D0%8F-%D0%A0%D1%97%D0%A0%D1%95%D0%A0%D1%96%D0%A0%D1%95%D0%A0%D2%91%D0%A1%E2%80%B9-%D0%A0%D0%86-%D0%A1%E2%80%A6%D0%A0%D1%95%D0%A1%D0%82%D0%A0%D1%95%D0%A1%E2%82%AC%D0%A0%C2%B5%D0%A0%E2%84%96-%D0%A0%D1%95%D0%A0%C2%B7%D0%A0%D0%86%D0%A1%D1%93%D0%A1%E2%80%A1%D0%A0%D1%94%D0%A0%C2%B5&p=46425#post46425
    http://jingcanjiaoyu.com/thread-1683-1-1.html
    http://www.estudiandoenmadres.com.ar/foro/index.php?topic=47535.new#new

Leave a Reply

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