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.

    45497989172226373209611527
    http://cafekulinarya.co.uk/?attachment_id=118&unapproved=243386&moderation-hash=c3a2b5f7bc2e0b3cf93bb329640d3740#comment-243386 http://pulsar-forum.pl/showthread.php?tid=227468 http://forumturystyka.pl/showthread.php?tid=4592 http://post.12gates.net/showthread.php?tid=348781&pid=693740#pid693740 http://cvt-portal.ru/showthread.php?tid=25063&pid=133282#pid133282 http://naturalbodybuilding.ru/ru/node/13885#comment-359963 https://sextingsite.com/viewtopic.php?f=15&t=488135 http://va2na.com/forum/viewtopic.php?f=2&t=185100 https://razvodnya.ru/viewtopic.php?f=2&t=6963&p=23860#p23860 https://www.source-forum.com/showthread.php?tid=159616 http://ru.evbud.com/projects/2871371/ http://metr.by/object/2077200 http://www.anstiss.com/?contact-form-id=widget-text-9&contact-form-sent=310812&contact-form-hash=226da66c92c2bee8af63abc8086fc7e635d09b21&_wpnonce=912010d110 http://forum.kraspivo.ru/viewtopic.php?f=6&t=112061 http://suiteusergroup.com/suiteforum/showthread.php?tid=112608
    https://www.wohnprojekt2026.de/forum/viewtopic.php?f=8&t=97341 http://ictopschool.one/forum/index.php/topic,150274.new.html#new http://users.atw.hu/videocsacska/viewtopic.php?p=255370#255370 http://www.mbwguitars.com/forum/viewtopic.php?f=5&t=6260 https://www.jerkforfans.com/Forum/viewtopic.php?f=24&t=10403 http://grassrootsforum.info/viewtopic.php?f=3&t=20319&p=26928#p26928 https://webboard.thaibaccarat.net/index.php?topic=344958.new#new https://teedinzone.com/webboard/index.php?topic=81527.new#new https://www.rustlandgermany.de/viewtopic.php?f=7&t=20669 http://beta.cqpolska.pl/showthread.php?tid=94830&pid=289527#pid289527 https://traveldiscussions.com/viewtopic.php?f=8&t=70846 http://avaya.newsystems.ru/forum/messages/forum1/topic197374/message209823/?result=new http://protee.guru/viewtopic.php?f=8&t=2351757 http://gopinball.com/forum/viewtopic.php?f=6&t=482123 https://junkraiders.cl/foro/viewtopic.php?f=3&t=49004 http://www.inforbarget.fr/forum/viewtopic.php?f=20&t=37647 http://zatoxgaming.org/forums/viewtopic.php?f=5&t=714231 http://www.tekmonkey.us/index.php?topic=9368.new#new http://banglaforum.net/forum/viewtopic.php?f=29&t=378457 http://forumseramik.com/viewtopic.php?f=10&t=5113 http://thietkeyenphu.com.vn/4rum/viewtopic.php?f=2&t=366102 https://bironi.ru/forum/messages/forum1/topic9/message398721/?result=reply#message398721 http://ictopschool.one/forum/index.php/topic,150278.new.html#new https://warlord.tech/viewtopic.php?f=1&t=21229 http://www.tekmonkey.us/index.php?topic=9369.new#new
    https://sextingsite.com/viewtopic.php?f=15&t=488136 https://forum.cctvtechforum.com/Thread-dzjibujc http://naturalbodybuilding.ru/ru/node/13885#comment-359967 http://pulsar-forum.pl/showthread.php?tid=227473 https://www.source-forum.com/showthread.php?tid=159617 https://www.kasanet.pl/thread-8176.html http://forum.vp-net.ro/showthread.php?tid=7282&pid=43723#pid43723 http://metr.by/object/2077206 https://kusbaz.ru/viewtopic.php?f=45&t=223854 https://www.minexcointalk.com/how-to-make-money-as-a-student-in-the-uk/?unapproved=82201&moderation-hash=0f8a58dac2a90c92b93d8fefa18c7736#comment-82201 https://tomhuff.wordpress.com/about/?contact-form-id=2&contact-form-sent=695051&contact-form-hash=c426da521d31d5406fd89c0578178c19369e58a8&_wpnonce=34958ecf04 https://clancannabis.com.br/forum/showthread.php?tid=7662 https://52.78.224.240/viewtopic.php?f=33&t=42040 http://naturalbodybuilding.ru/ru/node/13885#comment-359971 https://audiosellerz.com/forums/showthread.php?tid=174860
    https://bestrunar.com/board/index.php?topic=8752.new#new http://users.atw.hu/videocsacska/viewtopic.php?p=255371#255371 http://thevms.net/index.php?topic=83734.new#new https://africainvestmentgroupint.com/index.php/forum/welcome-mat/31688-2021#31695 https://www.aqueousmeditation.com/forum/viewtopic.php?f=4&t=337963 http://discustorming.com/viewtopic.php?f=2&t=116383 http://67.205.147.96/viewtopic.php?f=2&t=28786 http://school36-tambov.ru/forum/viewtopic.php?f=17&t=449685 https://clancannabis.com.br/forum/showthread.php?tid=2759 http://demo.ngofficiel.fr/viewtopic.php?p=230661#230661 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=53361 http://roadragenz.com/forum/viewtopic.php?f=27&t=1108776 http://roadragenz.com/forum/viewtopic.php?f=27&t=1108780 https://test.club-irbis.ru/viewtopic.php?pid=436372 https://warlord.tech/viewtopic.php?f=1&t=21230 http://philippe.payro.free.fr/forum/viewtopic.php?f=2&t=118987 http://roadragenz.com/forum/viewtopic.php?f=27&t=1108822 https://bironi.ru/forum/messages/forum1/topic9/message398717/?result=reply#message398717 http://www.reo14.moe.go.th/phpBB3/viewtopic.php?f=6&t=996248 http://demo.ngofficiel.fr/viewtopic.php?p=230662#230662 https://emiratehub.ae/thread-220881.html http://forumjokerasia.com/showthread.php?tid=15486 https://bitcoinlove.ca/forum/viewtopic.php?f=3&t=6722 https://rod-podzamcze.pl/forum/showthread.php?tid=3544 http://thevms.net/index.php?topic=83736.new#new

Leave a Reply

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