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.

    48785970672226377090454396
    https://jeffreykett.wordpress.com/?contact-form-id=188&contact-form-sent=309233&contact-form-hash=c4849295e98b75433412d5073a3177e534e47aba&_wpnonce=49f35f3b22 http://beta.cqpolska.pl/showthread.php?tid=106789&pid=313052#pid313052 http://forum.vngk.kz/showthread.php?tid=97455&pid=225243#pid225243 http://metr.by/object/2076498 http://metr.by/object/2076503 http://osuskeho.eu/content/5-%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%81%D0%BE%D0%B2-%D0%BD%D0%B0-%D0%BA%D0%BE%D1%82%D0%BE%D1%80%D1%8B%D0%B5-%D0%BD%D1%83%D0%B6%D0%BD%D0%BE-%D0%BE%D1%82%D0%B2%D0%B5%D1%82%D0%B8%D1%82%D1%8C-%D1%81%D0%B5%D0%B1%D0%B5-%D0%BF%D1%80%D0%B5%D0%B6%D0%B4%D0%B5-%D1%87%D0%B5%D0%BC-%D0%B2%D1%8B%D0%B9%D1%82%D0%B8-%D0%B7%D0%B0%D0%BC%D1%83%D0%B6?page=640#comment-34723 https://diamondslivebreaks.com/thread-5786.html https://www.successdigestforum.com/viewtopic.php?f=6&t=1854938 https://valgemetsa.eu/gallery/pildid/?unapproved=15094&moderation-hash=00c544ae3303282008766b3f905f3062#comment-15094 https://www.html5videobank.com/community/showthread.php?tid=56040 http://forum.naronanews.com/showthread.php?tid=149773&pid=474317#pid474317 http://forum.webremeslo.runforum.webremeslo.ru/viewtopic.php?f=10&t=26324 https://razvodnya.ru/viewtopic.php?f=2&t=6963&p=23750#p23750 https://ninerp.com/forums/showthread.php?tid=105592 https://q8mazad.com/vb/showthread.php?p=3283688&posted=1#post3283688
    http://nauc.info/forums/viewtopic.php?f=3&t=15741958 http://forumseramik.com/viewtopic.php?f=10&t=11519 http://barcelonaforum.ru/obschii-2/programmirovanie-kontrollerov-913/index2545.html#post350036 https://webboard.thaibaccarat.net/index.php?topic=399196.new#new http://swiadomyprojektant.pl/forum/viewtopic.php?f=23&t=9599 http://aprehendiendobiblia.com/index.php/foro/buzon-de-sugerencias/106702-soul-soul-2021-1080#958698 http://nauc.info/forums/viewtopic.php?f=3&t=15741959 http://theamazonlegacy.com/phpBB3/viewtopic.php?f=8&t=134047 http://generator.altervista.org/viewtopic.php?f=2&t=16785 https://webboard.thaibaccarat.net/index.php?topic=399225.new#new http://labor-economics.org/forum/viewtopic.php?f=5&t=1701441 http://demo.ngofficiel.fr/viewtopic.php?p=249680#249680 http://staycationinthe.uk/viewtopic.php?f=11&t=26621 http://gwmcannon.com/showthread.php?tid=12423&pid=16485#pid16485 https://webboard.thaibaccarat.net/index.php?topic=399260.new#new http://uoleps.co.uk/viewtopic.php?f=19&t=8319 http://trudixcrs.com/viewtopic.php?f=5&t=11661 https://webboard.thaibaccarat.net/index.php?topic=399270.new#new http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=128359&Itemid=194#128641 http://grassrootsforum.info/viewtopic.php?f=3&t=20319&p=36523#p36523 http://www.svn24.ru/forum/showthread.php?p=237903#post237903 https://clubhipico.net/guarnicioneria/18125-in-p-ba-p-rang-bae-ta-i-gia-y-ae-a-ng-ba-p-rang-6.html#post76427 http://theamazonlegacy.com/phpBB3/viewtopic.php?f=8&t=134043 http://theamazonlegacy.com/phpBB3/viewtopic.php?f=8&t=134052 https://lysto-forum.tue-image.nl/index.php?topic=143126.new#new
    https://jeffreykett.wordpress.com/?contact-form-id=188&contact-form-sent=309234&contact-form-hash=c4849295e98b75433412d5073a3177e534e47aba&_wpnonce=9e51371dd9 http://kuko-forum.name/thread-6481.html http://forumjokerasia.com/showthread.php?tid=20284 https://q8mazad.com/vb/showthread.php?p=3283689&posted=1#post3283689 http://metr.by/object/2076501 http://metr.by/object/2076504 https://shortcels.co/index.php?/topic/137778-pffjeurd/ http://metr.by/object/2076494 http://www.warrenrodwell.com/2015/04/read-the-book-up-to-you/read-the-book-csp/?unapproved=37995&moderation-hash=18c6c5c1d76a5c53506a8fff698ffe58#comment-37995 https://nightandday.sk/483-2/elizabeth-arden-green-tea/?unapproved=61454&moderation-hash=9c1beeca75146015a35d15e02033df1d#comment-61454 https://q8mazad.com/vb/showthread.php?p=3283691&posted=1#post3283691 http://naturalbodybuilding.ru/ru/node/13885#comment-359374 http://naturalbodybuilding.ru/ru/node/19546#comment-359379 http://naturalbodybuilding.ru/ru/node/13885#comment-359373 http://chippingnortonopticians.co.uk/cropped-img_4033-1-jpg/?unapproved=123865&moderation-hash=62d2b76209ecaeec5076b6939bf0013b#comment-123865
    https://webboard.thaibaccarat.net/index.php?topic=399276.new#new http://theamazonlegacy.com/phpBB3/viewtopic.php?f=8&t=134048 http://swiadomyprojektant.pl/forum/viewtopic.php?f=23&t=9600 https://enah.edu.mx/enahforos/viewtopic.php?f=5&t=1403306 http://thevms.net/index.php?topic=94562.new#new https://enah.edu.mx/enahforos/viewtopic.php?f=5&t=1403308 https://webboard.thaibaccarat.net/index.php?topic=399281.new#new http://ictopschool.one/forum/index.php/topic,201239.new.html#new http://ictopschool.one/forum/index.php/topic,201240.new.html#new http://school36-tambov.ru/forum/viewtopic.php?f=17&t=468907 http://ca.gopinball.com/forum/viewtopic.php?f=6&t=511427 https://enah.edu.mx/enahforos/viewtopic.php?f=5&t=1403309 https://webboard.thaibaccarat.net/index.php?topic=399293.new#new http://q8c.net/viewtopic.php?f=2&t=9984 http://awhole.com/forum/viewtopic.php?f=7&t=98324 https://sieuthimini.net/viewtopic.php?f=2&t=15362 http://theamazonlegacy.com/phpBB3/viewtopic.php?f=8&t=134053 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=523802&sid=0afd370f6ecb61a31a59a933f762b4cb http://fortunegreen.com/forum/viewtopic.php?p=170529#170529 https://sextingsite.com/viewtopic.php?f=15&t=484578 https://webboard.thaibaccarat.net/index.php?topic=399318.new#new http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=523803&sid=79e476057c13680c8c4d318e70259f3f http://nauc.info/forums/viewtopic.php?f=3&t=15741971 https://webboard.thaibaccarat.net/index.php?topic=399307.new#new http://cyberweb.pt/viewtopic.php?f=16&t=63680

Leave a Reply

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