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.

    rrjvumdsg1fqixzy
    https://www.ucon-gaming.org/about-u-con/contact-us/?contact-form-id=48&contact-form-sent=24620&contact-form-hash=c304a876cb7e56582bc30c6839764018786f438a&_wpnonce=9a9ef94e60
    http://dedmazay.ru/forum/act_read/msg_483644.phtml
    http://bbs.jh1.net/forum.php?mod=viewthread&tid=25265&extra=
    http://www.sherifstores.com/blog/%D8%A8%D8%A8?page=6928#comment-346803
    http://www.wse-scylla.at/cms/index.php?option=com_joomlaboard&Itemid=55&func=view&catid=6&id=263724
    https://ambarkargoistanbul.com/istanbul-koli-tasima/?unapproved=17252&moderation-hash=b4786fab4af80b46c1494445e3e7c5ea#comment-17252
    http://printconverting.com/it/node/224155
    http://b7club.ru/viewtopic.php?f=26&t=970&p=615176#p615176
    http://62.33.234.15/viewtopic.php?f=8&t=473074&p=949583#p949583
    http://forum.dlnet.ru/viewtopic.php?f=8&t=473074&p=949584#p949584
    http://informaremos.com/o-que-sao-commodities/?unapproved=390906&moderation-hash=f23bc8c0e1b0f1eeb9d46597fd786c01#comment-390906
    https://www.mabors.com/helloworldmovie/?unapproved=21817&moderation-hash=e08ab9fb709545c0fda438d422070382#comment-21817
    http://www.omidanacademy.com/%d8%b5%d9%86%d8%b9%d8%aa-%d8%b1%d8%a8%d8%a7%d8%aa%db%8c%da%a9-20-%d9%85%db%8c%d9%84%db%8c%d9%88%d9%86-%d8%b4%d8%ba%d9%84-%d8%aa%d9%88%d9%84%db%8c%d8%af%db%8c-%d8%b1%d8%a7-%d8%aa%d8%a7-%d8%b3%d8%a7/comment-page-22959/?unapproved=1518221&moderation-hash=c11f02d82bcda33f773bdba17361a59a#comment-1518221
    http://tor-web.com/whydoc/myforums/topic/umznfvdr
    http://forum.nertex.sk/viewtopic.php?p=233206#233206
    https://useful-devices.com/viewtopic.php?pid=567665#p567665
    http://yafeiml.awardspace.us/viewthread.php?tid=1877908&extra=
    https://northfreediver.webnode.cz/forum/
    http://www.restauratorhuber.de/forum2/forum/viewthread.php?thread_id=19927
    http://forumk.fearnode.net/general-discussion/900427587/verburbl
    http://forumk.fearnode.net/general-discussion/900427588/qfomwnku
    http://www.preserved-diesels.co.uk/pdf/viewtopic.php?f=32&t=327193
    http://sat-plus.net/forum/index.php?topic=61454.new#new
    http://forumv.fearnode.net/general-discussion/900427589/swxlhvyj
    https://supercraft-pt.webnode.pt/forum/
    http://hubforum.club/showthread.php?tid=22722
    http://hker.live/viewtopic.php?f=4&t=18022
    http://motosiklet.xyz/showthread.php?tid=28218&pid=295236#pid295236
    https://realm.se/board/showthread.php?tid=835221
    https://inject0r.me/viewtopic.php?f=5&t=62069
    https://forum.konsole.space/index.php?/topic/8274-%D0%B4%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%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-%D1%84%D0%B8%D0%BB%D1%8C%D0%BC-%D0%B2-%D0%BA%D0%B0%D1%87%D0%B5%D1%81%D1%82%D0%B2%D0%B5/
    https://moto-otzovik.ru/viewtopic.php?f=4&t=5622&p=128929#p128929
    http://melevistas.com/viewtopic.php?f=4&t=95175
    https://coinping.co/btc/viewtopic.php?pid=156148#p156148
    https://reinigungsforum.de/threads/%D0%94%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B-1080.4012/
    http://ligerian-virtual-architects.com/phpbb/viewtopic.php?f=3&t=420602
    https://forum.tsukionline.com/index.php?/topic/89033-%D0%B4%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%BE%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD/
    http://preppers-house-forum.nl/forum/viewtopic.php?f=14&t=262434
    https://itells.ru/viewtopic.php?pid=9185#p9185
    https://forums.fpsgoons.org/viewtopic.php?f=4&t=62206
    https://forum.streamclix.com/punbb/viewtopic.php?pid=27331#p27331
    https://cobva.com/beachpartnerpage/showthread.php?tid=164903
    https://btc357.com/forum/viewtopic.php?pid=174693#p174693
    https://kqra.com/showthread.php?tid=85&pid=37572#pid37572
    https://btc-f.org/forum/viewtopic.php?pid=136827#p136827
    https://higginsgaming.com/viewtopic.php?f=8&t=186951
    http://tangoxchange.org/viewtopic.php?f=2&t=45031
    https://juggernautgamestudios.com/showthread.php?tid=3306&pid=17877#pid17877
    http://newtopassau.com/viewtopic.php?pid=1023007#p1023007
    https://itells.ru/viewtopic.php?pid=9186#p9186
    https://insigniagsdrivers.co.uk/showthread.php?tid=49770
    https://coinping.co/btc/viewtopic.php?pid=156149#p156149
    https://l2agony.net/forum/viewtopic.php?f=3&t=160978&p=199709#p199709
    http://forum.weightlosslottery.com/thread-303977.html
    https://w88homepage.com/w88/viewtopic.php?pid=77064#p77064
    https://unglont.ro/viewtopic.php?f=5&t=59360
    https://share1s.net/viewtopic.php?f=21&t=732303
    https://forum.tenno-inside.com/showthread.php?tid=94352
    https://newkek.com/viewtopic.php?f=12&t=14715
    https://www.klucze.co.uk/forum1/Upload/showthread.php?tid=370439
    http://mrssodhi.com/discussions/showthread.php?tid=149727
    https://w88homepage.com/w88/viewtopic.php?pid=77065#p77065
    https://newkek.com/viewtopic.php?f=12&t=14716
    http://veganchallenge.it/forum/viewtopic.php?f=5&t=103783
    https://maivfolk.com/forum/viewtopic.php?f=2&t=409361
    http://nutritionpersonalized.com/forum/viewtopic.php?f=4&t=613129
    https://sexy-x-rated.us/showthread.php?tid=40588
    https://sexy-x-rated.us/showthread.php?tid=40589
    http://simutrain.com/BB3/viewtopic.php?f=5&t=519541
    https://wickedcity.co.uk/showthread.php?tid=71455
    http://footgolffactory.com/viewtopic.php?f=2&t=7791
    http://ambervibe.com/forum/viewtopic.php?f=6&t=266344
    http://www.fnsquad.uk/showthread.php?tid=11070
    http://forum.18girls.org/showthread.php?tid=59866
    http://www.kolaservers.net/forums/showthread.php?tid=2849
    http://forum.arboreal.ru/viewtopic.php?f=4&t=6642
    https://modelcarsforum.com/showthread.php?tid=92710
    https://ternate.karantina.pertanian.go.id/forum/viewtopic.php?pid=409271#p409271
    https://www.5verdades.org/forum/thread-43267.html
    http://www.bec-dnepr.com/forum/viewtopic.php?f=2&t=187306
    http://simpinv.com/bbs/forum.php?mod=viewthread&tid=1497852&extra=
    https://noxious.pw/thread-240877.html
    https://www.5verdades.org/forum/thread-43268.html
    https://ternate.karantina.pertanian.go.id/forum/viewtopic.php?pid=409272#p409272
    https://www.astrade.es/phpBB3/viewtopic.php?f=8&t=129752&sid=c55fda624efaac26bda65b89aefbbf03
    https://momo-garden.com/viewtopic.php?f=27&t=6458&from_new_topic=1
    http://tdedchangair.com/webboard/viewtopic.php?f=2&t=63022
    http://www.sp3pje.ayz.pl/forum/showthread.php?tid=8411&pid=10044#pid10044
    https://on-lineclimat.ru/forum/messages/forum1/topic99/message16817/?result=reply#message16817
    https://btcoinz.com/forum/viewtopic.php?pid=151959#p151959
    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-1080–t109227.html
    http://scitechfitness.com/dir/viewtopic.php?f=4&t=147605
    http://www.tennis.kz/fluxbb/viewtopic.php?pid=870224#p870224
    https://noxious.pw/thread-240878.html
    https://phoenixran.com/showthread.php?tid=165999
    https://xemtinhay.com/tinmoi/viewtopic.php?pid=85638#p85638
    https://www.forotrabant.com/showthread.php?tid=16797
    https://turkmappersunion.orgfree.com/showthread.php?tid=2482
    https://insigniagsdrivers.co.uk/showthread.php?tid=49771
    http://scitechfitness.com/dir/viewtopic.php?f=4&t=147606

Leave a Reply

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