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.

    jazwfmdsg1fquvvo
    http://usse.biz/phpbb3/viewtopic.php?f=7&t=118693&sid=c4a8cb403c9a27f482e286585c1e3ad1
    http://www.poultry.space/viewtopic.php?pid=395275#p395275
    http://desert-to-forest.tomasoso.de/forum/showthread.php?tid=26052
    http://forumy.fearnode.net/general-discussion/900427498/wzulgbcv
    https://insigniagsdrivers.co.uk/showthread.php?tid=52442
    http://forumy.fearnode.net/general-discussion/900427499/abhjjwuq
    http://barnbarista.com/chat/viewtopic.php?f=7&t=162748
    http://shen500kapp.me/500KAppForum/viewtopic.php?f=2&t=573500
    https://one-on-one.ru/post/1261?page=859#comment-43055
    http://prozon.org.pl/forum/viewtopic.php?pid=38366#p38366
    http://hsien.com.freehostia.com/viewthread.php?tid=365087&extra=page%3D1
    https://klassen-forum.webnode.com/forum/
    https://gamingheadshot5.webnode.cz/forum/
    https://moto-otzovik.ru/viewtopic.php?f=4&t=5622&p=134840#p134840
    http://mrssodhi.com/discussions/showthread.php?tid=150692
    https://kapitan-sneck.com.ua/tovar-categori/ikra-okunya-premium-1000g.html
    https://forooposiciones.academiatamargo.com/viewtopic.php?f=60&t=211991
    http://chatterscoop.com/2015/09/21/annoying-people-you-meet-at-your-first-job-and-how-to-deal-with-them/#comment-152465
    https://gram.community/topic/321568-olanzapine-bon-marche-olanzapine-pas-cher-canada/page/1331/#comment-744929
    http://bewerbungsgigant.de/blog/topic.php?fid=10&tid=744195
    http://www.ibxnetwork.com/uncategorized/hello-world/?unapproved=28789&moderation-hash=b53873672a873ffc3fbe2524d59944f6#comment-28789
    http://www.simpinv.com/bbs/forum.php?mod=viewthread&tid=1499616&extra=
    https://derintabak.com/tarifler/portakalli-muffin/?unapproved=8376&moderation-hash=5a20fa233b66399a21acc34cfb890685#comment-8376
    https://cryptographybuzz.com/portsmash-hyper-threading-decryption-keys/?unapproved=344718&moderation-hash=179de80b4a6392fccc99bcdd0cd75a24#comment-344718
    https://www.coin.site/topic/197598-xqwcijgu/
    https://forums.fpsgoons.org/viewtopic.php?f=4&t=62754
    https://realm.se/board/showthread.php?tid=835624
    https://moto-otzovik.ru/viewtopic.php?f=4&t=5622&p=131191#p131191
    https://reinigungsforum.de/threads/%D0%94%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B-%D1%81%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C-%D0%B2-%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%BE%D0%B9-%D0%BE%D0%B7%D0%B2%D1%83%D1%87%D0%BA%D0%B5.4156/
    http://kayfamily.email/viewtopic.php?f=8&t=19130
    https://coinping.co/btc/viewtopic.php?pid=161172#p161172
    https://forum.streamclix.com/punbb/viewtopic.php?pid=28131#p28131
    http://nsu-club.com/forum/viewtopic.php?f=10&t=1451781
    https://cobva.com/beachpartnerpage/showthread.php?tid=167511
    https://btc-f.org/forum/viewtopic.php?pid=141925#p141925
    http://forum.l2-aquarius.ru/index.php?/topic/178236-%D1%81%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C-%D0%B0%D0%BD%D0%B8%D0%BC%D0%B5-%D0%B4%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B/
    http://motosiklet.xyz/showthread.php?tid=35610&pid=296629#pid296629
    https://insigniagsdrivers.co.uk/showthread.php?tid=50781
    http://www.onpflegeforum.de/post/2532109/#p2532109
    https://l2agony.net/forum/viewtopic.php?f=3&t=160978&p=201540#p201540
    http://forum.searchforlight.de/viewtopic.php?f=4&t=6550
    http://forum.weightlosslottery.com/thread-304728.html
    http://hker.live/viewtopic.php?f=4&t=18229
    https://forum.mukhronus.com/thread-638714.html
    http://newtopassau.com/viewtopic.php?pid=1028372#p1028372
    http://diomax.ru/forum/viewtopic.php?f=10&t=127548
    https://itells.ru/viewtopic.php?pid=9998#p9998
    https://kqra.com/showthread.php?tid=2846&pid=49718#pid49718
    https://kqra.com/showthread.php?tid=2846&pid=49718#pid49718
    https://itells.ru/viewtopic.php?pid=9999#p9999
    http://forum.mobilew88.com/viewtopic.php?pid=204822#p204822
    http://bbs.fangmazhou.com/forum.php?mod=viewthread&tid=23434&extra=
    https://w88homepage.com/w88/viewtopic.php?pid=82169#p82169
    https://useful-devices.com/viewtopic.php?pid=562859#p562859
    https://jokerslotpulsa.xyz/viewtopic.php?f=13&t=112579
    https://w88homepage.com/w88/viewtopic.php?pid=82170#p82170
    https://maivfolk.com/forum/viewtopic.php?f=2&t=412577
    http://veganchallenge.it/forum/viewtopic.php?f=5&t=104505
    https://www.klucze.co.uk/forum1/Upload/showthread.php?tid=371493
    https://roqstech.de/viewtopic.php?f=4&t=1397348&p=1454693#p1454693
    https://forum.tenno-inside.com/showthread.php?tid=97718
    http://tangoxchange.org/viewtopic.php?f=2&t=45305
    https://w88homepage.com/w88/viewtopic.php?pid=82171#p82171
    https://sexy-x-rated.us/showthread.php?tid=42096
    https://coinping.co/btc/viewtopic.php?pid=161173#p161173
    https://sexy-x-rated.us/showthread.php?tid=42095
    http://theburningden.com/forum/index.php?topic=24972.new#new
    https://kqra.com/showthread.php?tid=85&pid=49720#pid49720
    http://forum.18girls.org/showthread.php?tid=60260
    http://slaggert.com/viewtopic.php?f=2&t=15092
    http://www.kolaservers.net/forums/showthread.php?tid=3273
    https://russianmagia.com/viewtopic.php?f=5&t=104765
    https://ternate.karantina.pertanian.go.id/forum/viewtopic.php?pid=414813#p414813
    https://ternate.karantina.pertanian.go.id/forum/viewtopic.php?pid=414814#p414814
    http://ambervibe.com/forum/viewtopic.php?f=6&t=267912
    http://hartkamer.nl/infusions/forum/viewthread.php?thread_id=168130
    https://noxious.pw/thread-242858.html
    https://xemtinhay.com/tinmoi/viewtopic.php?pid=89941#p89941
    http://www.sp3pje.ayz.pl/forum/showthread.php?tid=9465
    http://www.tennis.kz/fluxbb/viewtopic.php?pid=871226#p871226
    http://techniqueauto.ch/forum/welcome-mat/553399-sm-tr-ti-ditja-p-g-di-n-russ-m-jazi#553404
    https://www.astrade.es/phpBB3/viewtopic.php?f=8&t=130459&sid=f7257cd488b12ff17a87fcd1d1b4fecc
    https://russianmagia.com/viewtopic.php?f=5&t=104766
    https://insigniagsdrivers.co.uk/showthread.php?tid=50782
    http://mrssodhi.com/discussions/showthread.php?tid=150058
    https://zom.vn/bds/viewtopic.php?pid=35691#p35691
    http://alljordan.xyz/showthread.php?tid=5089&pid=6513#pid6513
    http://www.kanada-forum.net/auswandern-f5/%D0%94%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B-%D0%B0%D0%BD%D0%B8%D0%BC%D0%B5-%D0%BD%D0%B0-%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%BE-t109646.html
    https://xemtinhay.com/tinmoi/viewtopic.php?pid=89942#p89942
    https://www.forotrabant.com/showthread.php?tid=16929&pid=34540#pid34540
    http://www.powderday.ru/forum/viewtopic.php?f=5&t=285114
    http://www.8thcav.com/forum/index.php?topic=30167.new#new
    https://turkmappersunion.orgfree.com/showthread.php?tid=2586
    https://www.defuse.ro/forum/viewtopic.php?f=14&t=39162
    http://juggernautgamestudios.com/showthread.php?tid=3413&pid=19660#pid19660
    https://soa.network/viewtopic.php?f=7&t=134990
    http://jfkrfkmurdersolved.com/forum/viewtopic.php?f=6&t=22190
    https://www.ranmac.asia/forum/showthread.php?tid=60502
    http://www.estudiandoenmadres.com.ar/foro/index.php?topic=48927.new#new
    http://www.sekasao.go.th/sekaforum/viewtopic.php?pid=3621#p3621

Leave a Reply

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