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.

    ehseomdsg1fqigza
    https://didaudo.vn/wood-house-garden-vuon-nha-go-mong-mo-giua-dat-troi-bao-loc.html?unapproved=46924&moderation-hash=b6792558a13c842dc7ca3075954fc68f#comment-46924
    https://w88homepage.com/w88/viewtopic.php?pid=91204#p91204
    http://amantespastoraleman.com/foro/showthread.php?tid=7333
    https://www.forotrabant.com/showthread.php?tid=5283&pid=35032#pid35032
    http://stc-oldboys.com/showthread.php?p=304444#post304444
    http://falforum.org/viewtopic.php?f=4&t=33149
    https://xemtinhay.com/tinmoi/viewtopic.php?pid=96408#p96408
    http://www.webelite.pl/lefhgnzc-t-654345.html
    https://useful-devices.com/viewtopic.php?pid=567678#p567678
    http://www.f150nation.com/general-tech/569573-svgijyzj.html#post923959
    https://tr.forumshot.com/konu-gmvkmqfl.html
    http://foruma.fearnode.net/general-discussion/900427741/zwgllvsx
    http://patriotika.wezom.net/forum/viewtopic.php?pid=217130#p217130
    http://sayyourown.com/viewtopic.php?f=2&t=3208&p=25485#p25485
    http://forumt.fearnode.net/general-discussion/900427743/ccsmyuua
    http://libria.su/librarium-elementum/forum/viewtopic.php?f=19&t=168309
    https://18c.se/showthread.php?tid=43239
    https://russianmagia.com/viewtopic.php?f=5&t=106275
    http://forumc.fearnode.net/general-discussion/900427751/axcqftzs
    http://www.restauratorhuber.de/forum2/forum/viewthread.php?thread_id=19928
    http://forumc.fearnode.net/general-discussion/900427755/dkpalnpw
    https://maivfolk.com/forum/viewtopic.php?f=2&t=417996
    http://forum.nertex.sk/viewtopic.php?p=233211#233211
    http://yafeiml.awardspace.us/viewthread.php?tid=1877915&extra=
    http://forumz.fearnode.net/general-discussion/900427756/ybotjxsj
    https://ternate.karantina.pertanian.go.id/forum/viewtopic.php?pid=414649#p414649
    https://roqstech.de/viewtopic.php?f=4&t=1397348&p=1454621#p1454621
    https://insigniagsdrivers.co.uk/showthread.php?tid=50756
    http://techniqueauto.ch/forum/welcome-mat/553368-ditja-p-g-di-2019-1080#553373
    https://ternate.karantina.pertanian.go.id/forum/viewtopic.php?pid=414650#p414650
    http://forum.18girls.org/showthread.php?tid=60245
    https://www.5verdades.org/forum/thread-45515.html
    http://tdedchangair.com/webboard/viewtopic.php?f=2&t=69107
    http://ambervibe.com/forum/viewtopic.php?f=6&t=267849
    https://w88homepage.com/w88/viewtopic.php?pid=82026#p82026
    https://modelcarsforum.com/showthread.php?tid=95727
    https://w88homepage.com/w88/viewtopic.php?pid=82027#p82027
    http://simutrain.com/BB3/viewtopic.php?f=5&t=519987
    http://scort.vip/comunidad/viewtopic.php?f=8&t=32310
    https://www.5verdades.org/forum/thread-45516.html
    http://www.kolaservers.net/forums/showthread.php?tid=3244
    http://www.sp3pje.ayz.pl/forum/showthread.php?tid=9440
    http://www.sp3pje.ayz.pl/forum/showthread.php?tid=9441
    http://www.bec-dnepr.com/forum/viewtopic.php?f=2&t=189926
    http://www.tennis.kz/fluxbb/viewtopic.php?pid=871198#p871198
    http://www.kanada-forum.net/auswandern-f5/%D0%A1%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%94%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B–t109627.html
    http://redladrilleras.net/apps/foro/viewtopic.php?f=2&t=184857
    https://btcoinz.com/forum/viewtopic.php?pid=157071#p157071
    http://www.8thcav.com/forum/index.php?topic=30069.new#new
    http://sayyourown.com/viewtopic.php?f=2&t=21369
    http://scitechfitness.com/dir/viewtopic.php?f=4&t=150904
    http://www.ambervibe.com/forum/viewtopic.php?f=6&t=267850
    http://www.iturdu.net/index.php?topic=30543.new#new
    https://turkmappersunion.orgfree.com/showthread.php?tid=2578
    https://xemtinhay.com/tinmoi/viewtopic.php?pid=89791#p89791
    http://www.powderday.ru/forum/viewtopic.php?f=5&t=285035
    http://www.sistematizacion.cl/foro_lemur/viewtopic.php?pid=29089#p29089
    https://www.ranmac.asia/forum/showthread.php?tid=60423
    https://www.ranmac.asia/forum/showthread.php?tid=60422
    https://www.forotrabant.com/showthread.php?tid=16922
    https://rippinrodsandclassics.com/showthread.php?tid=13250&pid=21737#pid21737
    https://soa.network/viewtopic.php?f=7&t=134867
    http://www.sekasao.go.th/sekaforum/viewtopic.php?pid=3581#p3581
    http://test.windsorpie.com/forum.php?mod=viewthread&tid=687849&extra=
    http://www.nobadwhiskey.com/forum/viewtopic.php?f=3&t=12521
    https://xemtinhay.com/tinmoi/viewtopic.php?pid=89793#p89793
    http://vzlomix.ru/index.php?/topic/6756-%D0%B4%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B-%D0%BD%D0%B0-%D1%8F%D0%BF%D0%BE%D0%BD%D1%81%D0%BA%D0%BE%D0%BC/
    http://patriotika.wezom.net/forum/viewtopic.php?pid=212120#p212120
    http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=9842&p=42832#p42832
    http://forum.sailorstation.com/bb/viewtopic.php?f=20&t=436397
    https://zom.vn/bds/viewtopic.php?pid=35595#p35595
    http://forum.18girls.org/showthread.php?tid=60245&pid=157565#pid157565
    http://www.208408.com/forum.php?mod=viewthread&tid=183423&extra=
    http://www.destekgelsin.com/showthread.php?tid=76576
    http://jetclub.gr/forum/viewtopic.php?f=52&t=265408
    http://www.division-gaming.net/test2000/index.php/forum/2-welcome-mat/1832256#1832256
    http://www.youhui.group/forum.php?mod=viewthread&tid=1632197&extra=
    http://zatoxgaming.org/forums/viewtopic.php?f=5&t=15118
    https://www.fbnewspost.com/index.php/topic,110279.new.html#new
    https://www.astrade.es/phpBB3/viewtopic.php?f=8&t=130412&sid=813a3c30ca80b282a80a659893a33067
    https://kqra.com/showthread.php?tid=2846&pid=49296#pid49296
    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%B4%D0%BB%D1%8F-ipad–t109628.html
    https://forum.compucoin.org/showthread.php?tid=772235&pid=1821868#pid1821868
    http://baugruppe.cz/forum/index.php?action=vthread&forum=7&topic=68911
    https://capbiz.su/index.php?/topic/336493-multfilm-ditia-pogody-2019-hd-%E2%80%94-smotret-v-khoroshem-k/
    http://www.15forum.com/showthread.php?tid=100268&pid=194431#pid194431
    http://www.estudiandoenmadres.com.ar/foro/index.php?topic=48825.new#new
    http://www.estudiandoenmadres.com.ar/foro/index.php?topic=48824.new#new
    http://protee.guru/viewtopic.php?f=8&t=114971
    http://forum.matindvd.ir/viewtopic.php?pid=44295#p44295
    http://www.ambervibe.com/forum/viewtopic.php?f=6&t=267851
    https://www.8n8n.work/forum.php?mod=viewthread&tid=932619&extra=
    https://kqra.com/showthread.php?tid=6995
    http://www.greatwallowners.com/viewtopic.php?f=5&t=206497
    http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=111291&Itemid=194#126677
    http://www.veganmealplan.net/forum/index.php?threads/%D0%94%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B-%D0%BC%D1%83%D0%BB%D1%8C%D1%82%D1%84%D0%B8%D0%BB%D1%8C%D0%BC-2019-1080.1094765/
    https://capbiz.su/index.php?/topic/336494-ditia-pogody-anime-onlain/
    https://www.lsaforum.com/fluxbb/viewtopic.php?pid=76568#p76568
    http://82.165.122.32/index.php?topic=129703.new#new
    https://stubnac.com/forum/viewtopic.php?f=10&t=552255

Leave a Reply

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