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.

    4162863375458881569436252746791
    http://www.game-train.de/index.php?task=view&id=349 http://science.ftu.ac.th/?p=1006&unapproved=130405&moderation-hash=a838737e8c84bcd57f3d2a775751e67d#comment-130405 https://rawsugarstudio.com/2015/09/arlo-guthrie-coming-to-lorain-palace-october-3rd/?unapproved=232653&moderation-hash=7366bb0511c6afdbeda166b0a10ee93a#comment-232653 http://adlerlawcenter.com/hello-world/?unapproved=104618&moderation-hash=65ddb6d4eebcf3748ba766b44ed0c7fa#comment-104618 http://kelvindavies.co.uk/forum/viewtopic.php?f=2&t=2200150&sid=fb1c379c1c4721fffc4095789165c945 http://forum.kraspivo.ru/viewtopic.php?f=6&t=112081 https://www.successdigestforum.com/viewtopic.php?f=6&t=1855928 http://forum.dahouse.ir/thread-5326.html http://naturalbodybuilding.ru/ru/node/13885#comment-360370 https://suppliertynews.com/contact/?contact-form-id=3&contact-form-sent=71801&contact-form-hash=35d9cdd79d171c4ff22c7543d3323a5594b1cad2&_wpnonce=c1a198ddfd https://www.hercommonthread.com/2019/02/04/a-new-chapter/?unapproved=127969&moderation-hash=1f56a3b57666af58c2ef51e628c881c8#comment-127969 http://metr.by/object/2077967 https://asuratech.com/hello-world/?unapproved=68614&moderation-hash=d5e54ec653333a771468c9441e4c1ffb#comment-68614 http://periodicomicasa.com.mx/periodico-mi-casa-enero-2017/?unapproved=26792&moderation-hash=4b908ccf627b0e35b26d841d71b16ceb#comment-26792 http://naturalbodybuilding.ru/ru/node/13885#comment-360545
    http://protee.guru/viewtopic.php?f=8&t=2516281 http://staycationinthe.uk/viewtopic.php?f=11&t=27692 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=469643 http://www.bragaburgerq.com.br/whatspedidos/forum/viewtopic.php?f=3&t=33808 https://logoushka.ru/viewtopic.php?f=5&t=15358 http://ictopschool.one/forum/index.php/topic,206383.new.html#new http://www.kipin.org/viewtopic.php?f=2&t=134134 https://forum.smart-venture.org/viewtopic.php?f=3&t=37752 http://kriptoturkiye.org/viewtopic.php?f=34&t=15441 http://thevms.net/index.php?topic=95625.new#new http://www.tekmonkey.us/index.php?topic=18494.new#new https://amazonassociate.ca/viewtopic.php?f=7&t=57356 https://forum.prasinoi.eu/viewtopic.php?f=19&t=975782 http://nauc.info/forums/viewtopic.php?f=3&t=15748079 https://forum.nebula-galaxia.de/viewtopic.php?f=2&t=555912 https://share1s.net/viewtopic.php?f=21&t=1369084 http://gopinball.com/forum/viewtopic.php?f=6&t=512746 http://blenderturkiye.com/viewtopic.php?f=13&t=939289 http://israelidebate.com/opinions/viewtopic.php?f=3&t=1493766 http://www.wasasando.com/viewtopic.php?f=31&t=54431 http://www.tekmonkey.us/index.php?topic=18372.new#new https://essens-club.ru/viewtopic.php?f=13&t=12477 https://www.fxforecasting.com/viewtopic.php?f=5&t=20047 http://smfpt2.smfpt.net/index.php/topic,92043.new.html#new http://www.safakroleplayfivem.com/index.php?topic=181593.new#new
    https://test.club-irbis.ru/viewtopic.php?pid=461729 http://sexnzb.com/pcjvqryt-t601487.html http://www.onkenyanroads.com/showthread.php?tid=4352&pid=180139#pid180139 https://q8mazad.com/vb/showthread.php?p=3285167&posted=1#post3285167 https://www.djangoboards.com/boards/1/topics/259623/ https://www.source-forum.com/showthread.php?tid=159753 http://forum.vngk.kz/showthread.php?tid=97662&pid=225939#pid225939 http://naturalbodybuilding.ru/ru/node/13885#comment-360956 https://q8mazad.com/vb/showthread.php?p=3284713&posted=1#post3284713 http://kelvindavies.co.uk/forum/viewtopic.php?f=2&t=2200096&sid=aaf9766715140e6cd043f34008bdb894 http://naturalbodybuilding.ru/ru/node/13885#comment-360837 http://kelvindavies.co.uk/forum/viewtopic.php?f=2&t=2200218&sid=5d89fcb99eb86aadb934c4b7c2ab704a https://www.successdigestforum.com/viewtopic.php?f=6&t=1856208 http://www.ulfholmer.se/?p=1&unapproved=181682&moderation-hash=26a421a5a859000f09e228018a6f11a5#comment-181682 https://clancannabis.com.br/forum/showthread.php?tid=7682
    http://cyberweb.pt/viewtopic.php?f=16&t=66618 http://www.safakroleplayfivem.com/index.php?topic=181491.new#new http://school36-tambov.ru/forum/viewtopic.php?f=17&t=469363 http://www.tekmonkey.us/index.php?topic=18378.new#new http://lasertrace.nl/forum/viewtopic.php?f=6&t=1167390 http://gaycommunity.vip/viewtopic.php?f=9&t=8486 http://q8c.net/viewtopic.php?f=2&t=10733 http://forum.czechrp.cz/viewtopic.php?f=9&t=82624 http://www.dev.hydes.in/analytix1/kunena-2013-02-09/analytix-users-category/3893856-online-2021#3894644 http://nauc.info/forums/viewtopic.php?f=3&t=15748079 https://krugozorov.ru/forum/messages/forum1/topic1/message332588/?result=reply#message332588 http://labor-economics.org/forum/viewtopic.php?f=5&t=1702188 http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=402631 http://mohr-tranebjaerg.de/forum/showthread.php?tid=861901 http://xn—-8sble4ao1ag1b8c.online/viewtopic.php?f=21&t=27919 http://www.myacnestory.sg/forum/viewtopic.php?f=6&t=12831 https://mu-kiseki.com/viewtopic.php?f=8&t=9255 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=524610&sid=1fc176d7c2de24038c2ee50ebc111def http://nauc.info/forums/viewtopic.php?f=3&t=15748838 https://www.fxforecasting.com/viewtopic.php?f=5&t=20035 http://freelineskate.free.fr/forum/viewtopic.php?f=2&t=134598 https://africainvestmentgroupint.com/index.php/forum/welcome-mat/34582-2021#34589 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=524565&sid=a0c921102ee0232e8c5e0271f78829da http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2717771 https://forum168.com/index.php?topic=7268.new#new

Leave a Reply

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