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. !!!!the-mumia-2017-hda says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    https://soundmanclub.ru/viewtopic.php?pid=375544#p375544
    http://israelidebate.com/opinions/viewtopic.php?f=3&t=2012822
    http://israelidebate.com/opinions/viewtopic.php?f=3&t=2012821
    http://lasertrace.nl/forum/viewtopic.php?f=13&t=1417708
    https://forum.nebula-galaxia.de/viewtopic.php?f=2&t=650086
    http://ngobrolingame.com/showthread.php?tid=119724&pid=215463#pid215463
    http://gac-forum.ru/viewtopic.php?p=283784
    http://riicorecruitment.org/index.php/topic,19800.new.html#new
    https://cp77forum.com/showthread.php?tid=68786
    http://67.205.147.96/viewtopic.php?f=2&t=111260
    https://audiosellerz.com/forums/showthread.php?tid=261088
    http://forum.tges.ir/showthread.php?tid=7423&pid=93418#pid93418
    https://www.rustlandgermany.de/viewtopic.php?f=7&t=129590
    https://bitexpert.club/viewtopic.php?f=5&p=1055813
    http://www.busspotter.de/showthread.php?tid=9451

    https://www.rustlandgermany.de/viewtopic.php?f=7&t=129451
    http://forum.vkportal.ba/viewtopic.php?f=17&t=1150&p=83904#p83904
    https://www.skyforum.nl/showthread.php?tid=8848
    http://lasertrace.nl/forum/viewtopic.php?f=13&t=1417199
    http://67.205.147.96/viewtopic.php?f=2&t=111129
    http://conternative.com/showthread.php?tid=52997
    http://forum.tges.ir/showthread.php?tid=7423&pid=93319#pid93319
    http://srdon.ru/forum/index.php?topic=33942.new#new
    http://www.panikforum.com/showthread.php?tid=210826
    https://genealogieforum.nl/thread-177819.html
    http://ictopschool.one/forum/index.php/topic,347981.new.html#new
    http://www.theworldwars.net/forum/showthread.php?tid=262117
    https://appginideveloper.com/forum/showthread.php?tid=42801
    https://mobililenakit.com/showthread.php?tid=48115
    https://bitexpert.club/viewtopic.php?f=5&t=450325&p=1055404#p1055404
    https://thebizupdate.com/eight-week-regional-u19-academies-program-commences/?unapproved=14107&moderation-hash=6c602b810019b7f538f215996ac6b46d#comment-14107
    http://www.thetravelboards.com/showthread.php?tid=33949
    https://localfishingchat.com/thread-150493.html
    http://173.193.251.43/index.php/topic,177016.new.html#new
    http://forum.dahouse.ir/thread-13361.html
    http://smfpt2.smfpt.net/index.php/topic,194379.new.html#new
    http://forum.tges.ir/showthread.php?tid=7423&pid=93320#pid93320
    http://www.onkenyanroads.com/showthread.php?tid=103761
    https://watchmoviesonlinenow.org/index.php/topic,83748.new.html#new
    http://srdon.ru/forum/index.php?topic=33943.new#new
    https://bitexpert.club/viewtopic.php?f=5&p=1055403
    http://israelidebate.com/opinions/viewtopic.php?f=3&t=2011193
    https://www.hispawno.com/showthread.php?tid=90752
    http://forum.czechrp.cz/viewtopic.php?f=3&t=107190
    http://bbs.hpc-hp.com/viewtopic.php?f=9&t=81666
    http://nauc.info/forums/viewtopic.php?f=4&t=16165246
    https://watchmoviesonlinenow.org/index.php/topic,83749.new.html#new
    https://www.icugamer.net/forum/showthread.php?tid=21947
    https://forum.vice-rp.net/viewtopic.php?f=47&t=192&p=6547#p6547
    http://www.onlinexmassage.com/viewtopic.php?f=56&t=141177
    https://www.djangoboards.com/boards/1/topics/309937/
    http://forum.kopkon.ru/viewtopic.php?f=1&t=70102
    http://www.mbwguitars.com/forum/viewtopic.php?f=5&t=43484
    https://congnghetuonglai.vn/forum/viewtopic.php?f=31&t=352946
    https://annexlist.com/forum/viewtopic.php?f=3&t=343848
    http://forum.1one.blue/viewtopic.php?f=18&t=386573
    http://forum.vkportal.ba/viewtopic.php?f=17&t=1150&p=83906#p83906
    http://forum.vkportal.ba/viewtopic.php?f=17&t=648&p=83905#p83905
    https://www.djangoboards.com/boards/1/topics/309938/
    http://bbs.hpc-hp.com/viewtopic.php?f=9&t=81667
    https://mazdaclassic.cz/viewtopic.php?f=3&t=52624
    https://mazdaclassic.cz/viewtopic.php?f=3&t=52625
    https://www.djangoboards.com/boards/1/topics/309939/
    http://kicme.kz/index.php?option=com_kunena&view=topic&catid=2&id=72084&Itemid=194#72085
    https://www.html5videobank.com/community/showthread.php?tid=34164&pid=492964#pid492964
    http://www.ankarac.com/index.php/topic,177017.new.html#new
    http://www.ankarac.com/index.php/topic,177018.new.html#new
    http://lasertrace.nl/forum/viewtopic.php?f=13&t=1417204
    http://porthkerris.com/forum/viewtopic.php?f=7&t=713294
    http://forum.vp-net.ro/showthread.php?tid=22717&pid=90167#pid90167

    http://israelidebate.com/opinions/viewtopic.php?f=3&t=2010050

Leave a Reply

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