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.

    ywmjvmdsg1fqglrm
    https://toptoursmongolia.com/kharakhorum-erdene-zuu-monastery/?unapproved=371737&moderation-hash=2f616ebc04a770d8f983352a17da2e5d#comment-371737
    https://highschoolhouseparty.com/weckingball-push-up-contest/?unapproved=62340&moderation-hash=9c926d307336f97cb2c984c2b8037a52#comment-62340
    https://russianmagia.com/viewtopic.php?f=5&t=106321
    http://forum.2serveothers.com/showthread.php?tid=337722&pid=485981#pid485981
    http://chungchitinhoc.net/showthread.php?tid=4998&pid=7064#pid7064
    http://labor-economics.org/forum/viewtopic.php?f=5&t=1374092
    http://www.game-train.de/index.php?task=view&id=418
    https://www.actioncams.com.br/forum/showthread.php?tid=307618
    https://serd.ait.ac.th/serd/?unapproved=480380&moderation-hash=f98dc8c1d36198b58f3993bbe8006e40#comment-480380
    https://larochelle-judo.fr/ju-jitsu-competition/?unapproved=29311&moderation-hash=f0cdc43941b238861e772eeebddc0cc6#comment-29311
    http://dedmazay.ru/forum/act_read/msg_483668.phtml
    http://gpstudentplacements.com.au/forums/topic/xqkclark/
    http://www.lightitecture.com/index.php/Forum/Model-Lighting/707110-Recollege-football-bowl-picks.html#707110
    http://www.wse-scylla.at/cms/index.php?option=com_joomlaboard&Itemid=55&func=view&catid=6&id=263737
    https://one-on-one.ru/post/1261?page=859#comment-43064
    http://dinitextil.siteoficial.ws/2018/es/node/32709#comment-1089470
    http://xn--c1akfd5azeb.xn--p1ai/forum/viewtopic.php?f=23&t=959465
    https://board.bmwcarmag.com/index.php?topic=449229.new#new
    http://printconverting.com/it/node/224182
    http://aqar.bezaat.com/showthread.php?1933892-utwyrzjh&p=4228841#post4228841
    http://blog.paysubsonline.com/membership-management-importance-creating-content/?unapproved=310819&moderation-hash=7eb914bf4c4c7f070401c416c9616b31#comment-310819
    http://www.sherifstores.com/blog/%D8%A8%D8%A8?page=6928#comment-346825
    http://ugscene.kapsi.fi/viewtopic.php?f=15&t=937599
    http://khalidalshaikh-fans.com/forum/showthread.php?p=1192134#post1192134
    http://ashayer.org/node/71907#comment-90618
    https://forums.fpsgoons.org/viewtopic.php?f=4&t=62133
    https://inject0r.me/viewtopic.php?f=5&t=61999
    http://newtopassau.com/viewtopic.php?pid=1022609#p1022609
    https://forum.streamclix.com/punbb/viewtopic.php?pid=27238#p27238
    https://coinping.co/btc/viewtopic.php?pid=155780#p155780
    http://hker.live/viewtopic.php?f=4&t=17990
    https://l2agony.net/forum/viewtopic.php?f=3&t=160978&p=199545#p199545
    https://juggernautgamestudios.com/showthread.php?tid=3323&pid=17720#pid17720
    https://higginsgaming.com/viewtopic.php?f=8&t=186669
    http://atheistsecularhumanist.org/agora/viewtopic.php?f=2&t=116856
    http://forum.l2-aquarius.ru/index.php?/topic/177089-%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://jokerslotpulsa.xyz/viewtopic.php?f=13&t=109843
    https://coinping.co/btc/viewtopic.php?pid=155782#p155782
    https://www.klucze.co.uk/forum1/Upload/showthread.php?tid=370320
    http://mrssodhi.com/discussions/showthread.php?tid=149679
    https://coinping.co/btc/viewtopic.php?pid=155785#p155785
    https://cobva.com/beachpartnerpage/showthread.php?tid=164663
    http://forum.weightlosslottery.com/thread-303867.html
    http://forum.ornisoft.com/viewtopic.php?f=4&t=400326
    https://on-lineclimat.ru/forum/messages/forum1/topic99/message16751/?result=reply#message16751
    https://forum.mukhronus.com/thread-633071.html
    https://forum.mukhronus.com/thread-633072.html
    http://bbs.jh1.net/forum.php?mod=viewthread&tid=23812&extra=
    https://modelcarsforum.com/showthread.php?tid=92437
    http://www.flyingfish.nl/forum/viewtopic.php?p=2512700#2512700
    http://www.mcempire.net/forum/viewtopic.php?f=13&t=129857
    http://www.mcempire.net/forum/viewtopic.php?f=13&t=129858
    https://forum.mukhronus.com/thread-633075.html
    http://forum.phakp.com/showthread.php?tid=13863&pid=23994#pid23994
    http://lindner-essen.de/forum/viewtopic.php?f=3&t=1768911
    http://www.lindner-essen.de/forum/viewtopic.php?f=3&t=1768917
    http://forum.finddex.com/showthread.php?tid=783731
    http://82.165.122.32/index.php?topic=123151.new#new
    http://forum.webdiplomacy.it/viewtopic.php?f=67&t=319745
    http://regenboogkabouters.messageboard.nl/forum/viewtopic.php?f=15&t=952805
    http://dentamind.com/clients/android/showthread.php?tid=774868
    http://megyaszoiskola.hu/forum/2-belepo-kapu/4575892-links-to-onion-sites-tor-browser-onion-web-addresses-of-sites-in-the-tor-browser-toronion-urls-directories-dark-wiki-onion-urls-tor-torsitebiz?limit=6&start=281700#9541071
    https://www.forotrabant.com/showthread.php?tid=16785
    https://www.forotrabant.com/showthread.php?tid=16784&pid=34063#pid34063
    http://zhangfengya.cn/forum.php?mod=viewthread&tid=1199870&extra=
    http://forum.digilyze.info/viewtopic.php?f=2&t=2930242
    http://primalguild.org/forum/showthread.php?tid=1205905
    http://gueli.info/include.php?path=forumsthread&threadid=4013172&entries=0#post4455274
    http://stecoin.net/showthread.php?tid=27676&pid=862500#pid862500
    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%84%D0%B8%D0%BB%D1%8C%D0%BC%D1%8B-2019-%D1%81%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C-%D0%BE%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD-%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.3989/
    https://itells.ru/viewtopic.php?pid=9102#p9102
    http://preppers-house-forum.nl/forum/viewtopic.php?f=14&t=262357
    http://nutritionpersonalized.com/forum/viewtopic.php?f=4&t=613014
    https://newkek.com/viewtopic.php?f=12&t=14663
    https://newkek.com/viewtopic.php?f=12&t=14664
    https://maivfolk.com/forum/viewtopic.php?f=2&t=409142
    https://itells.ru/viewtopic.php?pid=9103#p9103
    http://sayyourown.com/viewtopic.php?f=2&t=20911
    http://tangoxchange.org/viewtopic.php?f=2&t=45002
    https://sexy-x-rated.us/showthread.php?tid=40414
    http://hartkamer.nl/infusions/forum/viewthread.php?thread_id=168004
    http://forum.phakp.com/showthread.php?tid=13861&pid=23995#pid23995
    http://simpinv.com/bbs/forum.php?mod=viewthread&tid=1497748&extra=
    https://w88homepage.com/w88/viewtopic.php?pid=76536#p76536
    https://plecodiscus.com/viewtopic.php?f=8&t=243663
    http://simutrain.com/BB3/viewtopic.php?f=5&t=519479
    http://shiptunovich.fun/thread-310393.html
    https://forum.tenno-inside.com/showthread.php?tid=94075
    https://w88homepage.com/w88/viewtopic.php?pid=76537#p76537
    http://veganchallenge.it/forum/viewtopic.php?f=5&t=103726
    https://w88homepage.com/w88/viewtopic.php?pid=76538#p76538
    https://russianmagia.com/viewtopic.php?f=5&t=103348
    https://realm.se/board/showthread.php?tid=835191
    http://niubi.gg/forum.php?mod=viewthread&tid=4738245&extra=
    http://redladrilleras.net/apps/foro/viewtopic.php?f=2&t=183222
    https://wickedcity.co.uk/showthread.php?tid=71315&pid=102557#pid102557
    https://phoenixran.com/showthread.php?tid=165975
    http://techniqueauto.ch/forum/welcome-mat/551650-sm-trit-nl-in-nim-ditja-p-g-di-v-h-r-sh-m-ch-stv#551655
    http://forum.arboreal.ru/viewtopic.php?f=4&t=6598
    http://regenboogkabouters.messageboard.nl/forum/viewtopic.php?f=15&t=952809

Leave a Reply

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