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.

    74275885822226377659576575
    http://cvt-portal.ru/showthread.php?tid=25063&pid=137728#pid137728 http://naturalbodybuilding.ru/ru/node/13885#comment-386075 http://ntumatch.com/forum.php?mod=viewthread&tid=390526&extra= http://ngoinhachung.net/diendan/forum.php?mod=viewthread&tid=2435561&pid=5329341&page=7598&extra=#pid5329341 http://post.12gates.net/showthread.php?tid=356306 http://naturalbodybuilding.ru/ru/node/13885#comment-386085 http://naturalbodybuilding.ru/ru/node/13885#comment-386082 https://highschoolhouseparty.com/weckingball-push-up-contest/?unapproved=380214&moderation-hash=05d69be5c3441d80533df79d9e3ea7a5#comment-380214 https://mybusinessconsultants.wordpress.com/?contact-form-id=329&contact-form-sent=153266&contact-form-hash=d62c464153ad9a215e267c2465919460ee2cfd3f&_wpnonce=4b5c1ae9ee http://naturalbodybuilding.ru/ru/node/13885#comment-386087 http://conternative.com/showthread.php?tid=33017 https://forum.kardiolo.pl/topic/30740-kmyjwhtd/ https://webboard.album.sanook.com/forum//smi_preview2.php?site=https://webboard.album.sanook.com/forum/&ID_BOARD=328&ID_TOPIC=11832064&ID_MSG=30286342 http://naturalbodybuilding.ru/ru/node/13885#comment-386091 https://therockandduckshow.net/showthread.php?tid=87740&pid=179951#pid179951
    http://www.division-gaming.net/test2000/index.php/forum/2-welcome-mat/3162693-2021#3162693 https://traveldiscussions.com/viewtopic.php?f=8&t=98702 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2716072 http://fortunegreen.com/forum/viewtopic.php?p=170355#170355 http://discustorming.com/viewtopic.php?f=2&t=144494 http://forum.centr5.ru/viewtopic.php?f=29&t=58540 http://simpinv.com/bbs/forum.php?mod=viewthread&tid=2926224&extra= http://www.division-gaming.net/test2000/index.php/forum/2-welcome-mat/3162692-2021#3162692 http://www.lindner-essen.de/forum/viewtopic.php?f=3&t=2439698 http://www.division-gaming.net/test2000/index.php/forum/2-welcome-mat/3162682-online-2021#3162682 http://www.division-gaming.net/test2000/index.php/forum/2-welcome-mat/3162676-2-2-2021#3162676 http://www.lindner-essen.de/forum/viewtopic.php?f=3&t=2439699 https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=379523 https://huntwinnerforum.com/viewtopic.php?f=4&t=62271 https://mywork2.ru/speak/viewtopic.php?f=2&t=627673 http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=127750&Itemid=194#128032 http://theamazonlegacy.com/phpBB3/viewtopic.php?f=8&t=133988 https://sextingsite.com/viewtopic.php?f=15&t=484109 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=523102&sid=403996784e367122b2783c6c38dd54bb http://www.namistt.com/forums/viewtopic.php?f=5&t=338961 http://q8c.net/viewtopic.php?f=2&t=9805 http://thevms.net/index.php?topic=94345.new#new http://odinofficial.com/forums/viewtopic.php?f=8&t=7138 http://roadragenz.com/forum/viewtopic.php?f=27&t=1163548 http://lindner-essen.de/forum/viewtopic.php?f=3&t=2439701
    https://52.78.224.240/viewtopic.php?f=33&t=49484 http://slapinsky.com/nature/the-struggle-is-real/?unapproved=110247&moderation-hash=9865e8482a95c710cb0b684fccbe5b84#comment-110247 http://www.prava-sapa.hr/2016/01/31/hello-world/?unapproved=202349&moderation-hash=f99afaeaaaf524242db3096b9e7c7002#comment-202349 https://echokirova.ru/forum/messages/forum4/topic108299/message278534/?result=reply#message278534 http://ngoinhachung.net/diendan/forum.php?mod=viewthread&tid=2435561&pid=5329353&page=7599&extra=#pid5329353 https://www.successdigestforum.com/viewtopic.php?f=6&t=1877451 https://www.successdigestforum.com/viewtopic.php?f=6&t=1877456 https://www.successdigestforum.com/viewtopic.php?f=6&t=1877455 http://alazharelectware.com/index.php?option=com_kunena&view=topic&catid=2&id=936277&Itemid=314#936214 http://www.ggevaluations.com/forum/showthread.php?tid=220990 http://porthkerris.com/forum/viewtopic.php?f=7&t=691063 http://cvt-portal.ru/showthread.php?tid=39967&pid=137730#pid137730 http://porthkerris.com/forum/viewtopic.php?f=7&t=691064 https://tomhuff.wordpress.com/about/?contact-form-id=2&contact-form-sent=695956&contact-form-hash=c426da521d31d5406fd89c0578178c19369e58a8&_wpnonce=f413246349 http://metr.by/object/2106795
    https://enah.edu.mx/enahforos/viewtopic.php?f=5&t=1402859 http://lindner-essen.de/forum/viewtopic.php?f=3&t=2439695 http://awhole.com/forum/viewtopic.php?f=7&t=98219 http://jdsawyer.net/forums/viewtopic.php?f=3&t=16068 http://www.piminigeria.com/index.php/en/forum/welcome-to-pimi-ghana-forum/251062-2021#251127 http://thevms.net/index.php?topic=94348.new#new http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=127752&Itemid=194#128034 https://forum.uhleague.ru/viewtopic.php?f=14&t=31259 http://staycationinthe.uk/viewtopic.php?f=11&t=26355 http://israelidebate.com/opinions/viewtopic.php?f=3&t=1471262 http://vilia.it/index.php/forum/welcome-mat/146859-2021-1080#146742 http://pakimmigration.com/viewtopic.php?f=12&t=10376 http://smfpt2.smfpt.net/index.php/topic,88431.new.html#new http://forum.kopkon.ru/viewtopic.php?f=1&t=27241 http://thevms.net/index.php?topic=94349.new#new http://calvarychapeljoco.com/new/index.php/forum/welcome-mat/1244597-online-2021#1244567 http://www.division-gaming.net/test2000/index.php/forum/2-welcome-mat/3162701-2021#3162701 https://cartschat.com/viewtopic.php?f=3&t=28250 http://discustorming.com/viewtopic.php?f=2&t=144495 http://forum.kopkon.ru/viewtopic.php?f=1&t=27243 https://jimhelton.com/viewtopic.php?f=2&t=231794 https://www.covidforum.cz/viewtopic.php?f=10&t=2305 http://www.kinderwunsch-forum.com/thread.php?threadid=122593&sid=55f35b06ad9dd97c73fb2e0d7843460b http://cyberweb.pt/viewtopic.php?f=3&t=63235 https://ufarms.ru/viewtopic.php?f=3&t=11701

Leave a Reply

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