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.

    484585290522263711662592
    http://metr.by/object/2076272 http://www.game-train.de/index.php?task=view&id=674 https://prestigegamingnetwork.com/showthread.php?tid=8504&pid=9605#pid9605 http://naturalbodybuilding.ru/ru/node/13885#comment-359181 https://www.bimstore.co/forum/general/fire-suppression-tank http://pregnancytracker.net/forum/index.php?topic=52347.new#new http://filmiskane.nu/?page_id=2&unapproved=1526479&moderation-hash=f2b9e2850d5c69143e6d6ed7e1e4221a#comment-1526479 http://wmucsports.net/terps-drop-series-finale-to-no-18-michigan/?unapproved=223164&moderation-hash=00ab7030da8230a73e34266aca9766e7#comment-223164 https://ninerp.com/forums/showthread.php?tid=105435 https://www.bimstore.co/forum/general/fire-suppression-tank http://gimpel.ru/reviews#comment-176279 https://www.beatlesbible.com/about/contact/?contact-form-id=47847&contact-form-sent=96280&contact-form-hash=4bb1639678a63db89cb18c16a6ba7ebef4c2345f&_wpnonce=c84294c21b http://krikstynoms.lt/idejos-krikstynoms/kaip-puostis-krikstynoms?page=2720#comment-191213 https://yimei2018.com/forum.php?mod=viewthread&tid=702766&extra= https://guillaumekasbarian.fr/community/topic/venbgzjr/#postid-607039
    http://ictopschool.one/forum/index.php/topic,130103.new.html#new http://staycationinthe.uk/viewtopic.php?f=11&t=9409 http://roadragenz.com/forum/viewtopic.php?f=27&t=1072708 http://www.mbwguitars.com/forum/viewtopic.php?f=5&t=3363 http://www.wasasando.com/viewtopic.php?f=31&t=51446 http://theamazonlegacy.com/phpBB3/viewtopic.php?f=8&t=131651 http://freelineskate.free.fr/forum/viewtopic.php?f=2&t=102638 http://discustorming.com/viewtopic.php?f=2&t=106485 http://sd.life-rp.ro/viewtopic.php?f=72&t=1215 http://hker.live/viewtopic.php?f=4&t=514536 http://ictopschool.one/forum/index.php/topic,130104.new.html#new http://labor-economics.org/forum/viewtopic.php?f=5&t=1671935 http://zatoxgaming.org/forums/viewtopic.php?f=5&t=703175 http://skyscapelive.com/viewtopic.php?f=8&t=5138 https://teedinzone.com/webboard/index.php?topic=72119.new#new http://protee.guru/viewtopic.php?f=8&t=2289032 http://staycationinthe.uk/viewtopic.php?f=11&t=9410 http://protee.guru/viewtopic.php?f=8&t=2289033 http://protee.guru/viewtopic.php?f=8&t=2289045 http://daggerbay.com/forum/viewtopic.php?f=5&t=65244 http://madisonsongwriterscircle.com/viewtopic.php?f=5&t=72526 http://sound-book.net/viewtopic.php?f=5&t=22197 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=10633&p=208314#p208314 http://gaycommunity.vip/viewtopic.php?f=9&t=2710 http://savevernazza.com/forum/?mingleforumaction=viewtopic&t=592029#postid-320870
    https://studentskorner.com/showthread.php?tid=32417&pid=49782#pid49782 http://www.anstiss.com/contact-us/?contact-form-id=191&contact-form-sent=310756&contact-form-hash=3dec796194dbd8a17bf78b7372750e4a7d845e8d&_wpnonce=b9de1b9961 https://www.forumdime.com/Thread-jgwfmfru https://yimei2018.com/forum.php?mod=viewthread&tid=702768&extra= https://www.successdigestforum.com/viewtopic.php?f=6&t=1854682 http://naturalbodybuilding.ru/ru/node/13885#comment-359187 http://naturalbodybuilding.ru/ru/node/13885#comment-359183 http://naturalbodybuilding.ru/ru/node/13885#comment-359185 http://naturalbodybuilding.ru/ru/node/13885#comment-359186 http://naturalbodybuilding.ru/ru/node/13885#comment-359182 https://therockandduckshow.net/showthread.php?tid=83819&pid=172399#pid172399 http://www.karaokeler.com/karadir-kaslarin-karaoke/#comment-73365 https://q8mazad.com/vb/showthread.php?p=3283336&posted=1#post3283336 https://q8mazad.com/vb/showthread.php?p=3283333&posted=1#post3283333 https://q8mazad.com/vb/showthread.php?p=3283342&posted=1#post3283342
    https://congnghetuonglai.vn/forum/viewtopic.php?f=38&t=171117 http://avaya.newsystems.ru/forum/messages/forum1/topic186016/message196825/?result=new https://bbwhirlwind.online/viewtopic.php?f=2&t=220338 https://tictocbay.com/viewtopic.php?f=19&t=2793 http://www.reo14.moe.go.th/phpBB3/viewtopic.php?f=6&t=950258 https://bbwhirlwind.online/viewtopic.php?f=2&t=220340 https://mazdaclassic.cz/viewtopic.php?f=3&t=3440 http://philippe.payro.free.fr/forum/viewtopic.php?f=2&t=108379 https://paybackking.com/forum/viewtopic.php?f=8&t=5949 https://forum168.com/index.php?topic=3037.new#new https://warlord.tech/viewtopic.php?f=1&t=19483 http://www.wasasando.com/viewtopic.php?f=31&t=51447 https://gampahabusiness.info/Thread-%C2%AB%D0%9B%D1%83%D0%BA%D0%B0-%C2%BB-%EA%82%AE-online-%D0%9B%D1%83%D0%BA%D0%B0-%D1%84%D0%B8%D0%BB%D1%8C%D0%BC-2021-%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-%D0%B2%D1%8B%D1%81%D0%BE%D0%BA%D0%BE%D0%BC-%D0%BA%D0%B0%D1%87%D0%B5%D1%81%D1%82%D0%B2%D0%B5 http://hker.live/viewtopic.php?f=4&t=514541 https://forum168.com/index.php?topic=3038.new#new https://traveldiscussions.com/viewtopic.php?f=8&t=54963 https://africainvestmentgroupint.com/index.php/forum/welcome-mat/30903-online-2021#30911 http://forum.cyber-riders.de/viewtopic.php?f=38&t=10441 http://q8c.net/viewtopic.php?f=2&t=2802 https://bestrunar.com/board/index.php?topic=6824.new#new http://forum.hilfe-fuer-marco.de/news-allgemein-f64/-%D0%9C%D0%A3%D0%9B%D0%AC%D0%A2-%D0%B2-%D0%BA%D0%B8%D0%BD%D0%BE-%D0%92%D1%8B%D0%BF%D1%83%D1%81%D0%BA-110%D1%81%D0%BA%D0%B0%D0%B7%D0%BA-t47369.html https://lysto-forum.tue-image.nl/index.php?topic=128686.new#new http://www.kinderwunsch-forum.com/thread.php?threadid=114999&sid=1768810120bd3c4d8d3ef6e2ba94aa3f https://bitcoinlove.ca/forum/viewtopic.php?f=3&t=5328 http://www.mbwguitars.com/forum/viewtopic.php?f=5&t=3366

Leave a Reply

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