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

    ulcvqqmqqmgfhz
    https://www.cmaxfanatics.com/forum/showthread.php?p=2707424
    https://ahpwelds.com/forum/viewtopic.php?f=10&t=8437
    https://fseriesfanatics.com/forum/showthread.php?p=2707423
    https://www.uowarforge.com/forum/viewtopic.php?f=4&t=15024
    http://fq.ua/forum/viewtopic.php?f=9&t=59131
    https://arvenroleplay.com/lspd/index.php?topic=30755.new#new
    http://phonelistforum.com/viewtopic.php?f=3&t=224785
    http://tdedchangair.com/webboard/viewtopic.php?f=2&t=296287
    http://melevistas.com/viewtopic.php?f=3&t=472984
    http://forum.lilithgames.com/viewtopic.php?f=42&t=199177
    http://www.blenderturkiye.com/viewtopic.php?f=13&t=244192
    https://forum.ladypopular.fr/viewtopic.php?f=21&t=85407
    https://momo-garden.com/viewtopic.php?f=27&t=8067&from_new_topic=1
    http://forum.moroe.eu/viewtopic.php?f=4&t=11985
    http://www.tangoxchange.net/viewtopic.php?f=2&t=259140
    http://www.gosdom.com/viewtopic.php?f=5&t=197738
    http://calvarychapeljoco.com/new/index.php/forum/welcome-mat/420446-293-30-12-2020-online-293-293#420425
    http://rcpbmn.com/phpBB2/viewtopic.php?f=2&t=954778&sid=7add96c8bd31d57fbd911d621ff8cdfd
    https://cornlan.co.uk/forum/viewtopic.php?f=22&t=1423944
    http://xn—-8sbb9afib5c.xn--p1ai/viewtopic.php?f=15&t=5197
    http://gopinball.com/forum/viewtopic.php?f=6&t=124527
    http://veikkauspiste.com/forum/vedonlyonti-ja-vihjeet/%27kee-%28kefaret%29-9-e-%27-30-eka-2020-watch-k/new/#new
    http://intersavegame.co.uk/phpBB/viewtopic.php?f=3&t=1202818
    https://share1s.net/viewtopic.php?f=21&t=918529
    http://dogmaorchestra.com/forum/viewtopic.php?f=2&t=177689
    http://forkom-ppi.petra.ac.id/forum/viewtopic.php?f=2&t=17343
    https://forum.prasinoi.eu/viewtopic.php?f=19&t=156853
    http://rsdiva.com/guestbook-sign-in-t3254-s35660.html?sid=5c23132e6fe35f4093dfcff495241d93
    http://tangoxchange.org/viewtopic.php?f=2&t=259141
    http://fls2020.com/forum.php?mod=viewthread&tid=2055&pid=1866536&page=543&extra=page%3D1#pid1866536
    http://opelfreunde-outsiders.de/include.php?path=forumsthread&threadid=716892&entries=0#post989920
    https://dubaiescorts24forum.com/viewtopic.php?f=5&t=119853
    http://aprehendiendobiblia.com/index.php/foro/buzon-de-sugerencias/11387-yemin-298-30-12-20-yemin-298-yemin-298#863378
    http://rsdiva.com/guestbook-sign-in-t3254-s35660.html?sid=c7a6b29a1c83727bcde3ca9d3943b916
    https://forum.labs.stream/viewtopic.php?f=10&t=82277&p=88723#p88723
    https://forum.afilbv.ro/showthread.php?tid=128003
    http://ffexodus.com/clanforums/viewtopic.php?f=3&t=20586
    http://www.wasasando.com/viewtopic.php?f=31&t=30176
    http://nauc.info/forums/viewtopic.php?f=3&t=15069203
    http://preppers-house-forum.nl/forum/viewtopic.php?f=14&t=378327
    http://www.rickbouthoornracing.com/index.php/forum/welcome-mat/481395-43-30-2020-43-43#481287
    https://www.forum.xflnewsroom.com/viewtopic.php?f=2&t=134480
    https://www.uowarforge.com/forum/viewtopic.php?f=4&t=15025
    http://www.adeat-onlus.org/index.php?option=com_kunena&view=topic&catid=3&id=46815&Itemid=178#47262
    https://www.uowarforge.com/forum/viewtopic.php?f=4&t=15026
    https://www.edgefanatics.com/forum/showthread.php?p=2707441
    http://rcpbmn.com/phpBB2/viewtopic.php?f=2&t=954781&sid=d704a291e0ebd4f6f1692cbe84964187
    https://www.edgefanatics.com/forum/showthread.php?p=2707432
    http://fq.ua/forum/viewtopic.php?f=9&t=59132
    http://institucional.us.es/delepsico/foro/viewtopic.php?f=7&t=790389
    http://www.energypro.tn/forum/viewtopic.php?f=10&t=5276
    http://www.overlord.it/forum/viewtopic.php?f=3&t=507501
    https://foro.hlandia.org/index.php?topic=80601.new
    https://laligatbn.com/forum/viewtopic.php?f=2&t=39557
    http://ciphertalks.com/viewtopic.php?f=19&t=284519

Leave a Reply

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