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.

    5078490090128881569677547441403
    https://www.heliomariano.adv.br/o-novo-bacenjud-em-5-topicos/?unapproved=190550&moderation-hash=414931ce63bf85f6d064a2826c941c9c#comment-190550 http://www.la-bottega.pl/forum/viewtopic.php?f=16&t=5438 http://realrawtruths.com/2016/03/hot-topic_-the-power-of-the-human-spirit/?unapproved=263004&moderation-hash=00dfea91fd54977266d41bf8ba0169da#comment-263004 http://plainnuts.com/showthread.php?tid=173557 http://naturalbodybuilding.ru/ru/node/26352#comment-364272 https://homment.com/pVyJWbjnUQa1ckFcNhcb http://metr.by/object/2079800 http://www.atworkwerkt.nl/uncategorized/hello-world/?unapproved=3552128&moderation-hash=8d1256cdcb2f6ef29192071edfffab69#comment-3552128 https://www.djangoboards.com/boards/1/topics/260176/ http://naturalbodybuilding.ru/ru/node/26352#comment-368094 https://www.fkbanikradvanice.cz/forum/?_fid=i7pn http://naturalbodybuilding.ru/ru/node/26352#comment-365077 http://kinomozg.club/topic/127-mail-addurl/?page=8025#comment-144261 http://treasurehuntspokane.com/excellent-travel-advice-and-guide-to-visit-indonesia/#comment-2065443 https://toptoursmongolia.com/kharakhorum-erdene-zuu-monastery/?unapproved=1031460&moderation-hash=5e159e4b9553c1c421da083f4273f3ff#comment-1031460
    http://whsicilia.altervista.org/viewtopic.php?f=2&t=24524 https://bitcoinlove.ca/forum/viewtopic.php?f=3&t=12404 http://zk-balt.ru/viewtopic.php?f=1&t=14017 https://forum.uhleague.ru/viewtopic.php?f=14&t=34056 https://prahelion.xyz/showthread.php?tid=9533 https://logoushka.ru/viewtopic.php?f=5&t=15634 http://lasertrace.nl/forum/viewtopic.php?f=6&t=1170561 http://nauc.info/forums/viewtopic.php?f=3&t=15772696 https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=383501 http://estetikvediyet.com/viewtopic.php?f=8&t=363189 https://www.covidforum.cz/viewtopic.php?f=10&t=2489 http://www.school36-tambov.ru/forum/viewtopic.php?f=17&t=470555 http://nauc.info/forums/viewtopic.php?f=3&t=15760307 http://aprehendiendobiblia.com/index.php/foro/buzon-de-sugerencias/107909-2021#959903 http://bbs.hpc-hp.com/viewtopic.php?f=9&t=38443 https://www.rustlandgermany.de/viewtopic.php?f=7&t=41985 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=9928&p=238062#p238062 http://nauc.info/forums/viewtopic.php?f=3&t=15748749 https://www.scmgw.de/phpBB3/viewtopic.php?f=24&t=86993 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=529386&sid=09bcc39bf5a9173741f1a8ef7a77618f http://ictopschool.one/forum/index.php/topic,209277.new.html#new http://www.blenderturkiye.com/viewtopic.php?f=13&t=940625 http://lindner-essen.de/forum/viewtopic.php?f=3&t=2445622 http://nauc.info/forums/viewtopic.php?f=3&t=15757830 http://www.kinderwunsch-forum.com/thread.php?threadid=123724&sid=b72376ef438e0874a095e6f50e0ea4e9
    http://rmichels-dev-project.appspot.com/guestbook/5716576486555648 http://193167.kharkovf.web.hosting-test.net/viewtopic.php?f=11&t=297884 https://experthorticulture.com/forum/showthread.php?tid=3279 http://naturalbodybuilding.ru/ru/node/13885#comment-361173 https://www.jeremiethircuir.com/portfolio/beijing-louis-vuitton-city-guide/louis-vuitton-r08148_pm2_front-view/?unapproved=38542&moderation-hash=6100a47a7d6382ad9328b17843d1bf0f#comment-38542 http://naturalbodybuilding.ru/ru/node/19130#comment-363132 http://ntumatch.com/forum.php?mod=viewthread&tid=388751&extra= http://metr.by/object/2080563 http://juniorpraha.cz/navstevni-kniha/navstevni-kniha-tj-junior-praha#comment-8192 http://naturalbodybuilding.ru/ru/node/26352#comment-361427 http://metr.by/object/2089122 http://metr.by/object/2082904 https://carmenego.wordpress.com/?contact-form-id=2&contact-form-sent=295752&contact-form-hash=01f6d8ef4328785cb0aff80b826b83ef674c7e8a&_wpnonce=6572c540b0 https://q8mazad.com/vb/showthread.php?p=3286219&posted=1#post3286219 http://naturalbodybuilding.ru/ru/node/26352#comment-370634
    https://freeride24.ucoz.ru/forum/8-245-4#4646 http://nauc.info/forums/viewtopic.php?f=3&t=15757838 http://forum.kopkon.ru/viewtopic.php?f=1&t=29964 http://www.safakroleplayfivem.com/index.php?topic=183548.new#new http://trudixcrs.com/viewtopic.php?f=5&t=12762 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=10633&p=238441#p238441 http://lamban.xyz/viewtopic.php?f=5&t=7636 https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=387418 https://anonimforum.com/viewtopic.php?f=7&t=3551 https://webboard.thaibaccarat.net/index.php?topic=410644.new#new http://lindner-essen.de/forum/viewtopic.php?f=3&t=2445587 http://aprehendiendobiblia.com/index.php/foro/buzon-de-sugerencias/107854-2021#959848 https://forum.prasinoi.eu/viewtopic.php?f=19&t=976494 https://forum.latimojong.com/viewtopic.php?f=10&t=34927 http://www.cbr650.net/viewtopic.php?f=11&t=15062 http://gaycommunity.vip/viewtopic.php?f=9&t=8403 http://nauc.info/forums/viewtopic.php?f=3&t=15762941 https://www.jerkforfans.com/Forum/viewtopic.php?f=24&t=19608 http://www.ankarac.com/index.php/topic,76969.new.html#new http://www.adeat-onlus.org/index.php?option=com_kunena&view=topic&catid=3&id=102508&Itemid=178#102950 http://labor-economics.org/forum/viewtopic.php?f=5&t=1704429 http://www.division-gaming.net/test2000/index.php/forum/2-welcome-mat/3165447-2021#3165447 http://lindner-essen.de/forum/viewtopic.php?f=3&t=2444623 https://traveldiscussions.com/viewtopic.php?f=8&t=104740 http://nauc.info/forums/viewtopic.php?f=3&t=15769356

Leave a Reply

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