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.

    xkxqfmdsg1fqwahh
    http://tv-pul.ru/communication/viewtopic.php?f=23&t=1685962
    http://share.digitalmax.jp/bbs/viewtopic.php?f=5&t=5745407
    http://www.e3ebookings.com/blog/?unapproved=44022&moderation-hash=1b74ab8ea1e81c053247eba672843fe0#comment-44022
    http://b7club.ru/viewtopic.php?f=26&t=970&p=614768#p614768
    http://www.e3ebookings.com/blog/?unapproved=44023&moderation-hash=5fb9808135fe53f465aac9f29c1c881e#comment-44023
    http://62.33.234.15/viewtopic.php?f=8&t=473074&p=946405#p946405
    http://www.apartmentbuildingsforsalealberta.ca/edmonton-lrt-expansion-yeg4lrt/?unapproved=535249&moderation-hash=f4cb5fae79ad387e02381357db8ce7a4#comment-535249
    http://www.lightitecture.com/index.php/Forum/Model-Lighting/706207-ReFive-Paragraph-Essay-Ideas.html#706207
    http://www.poultry.space/viewtopic.php?pid=391846#p391846
    http://share.digitalmax.jp/bbs/viewtopic.php?f=12&t=5745403
    http://www.lightitecture.com/index.php/Forum/Model-Lighting/706209-ReFive-Paragraph-Essay-Ideas.html#706209
    http://www.lightitecture.com/index.php/Forum/Model-Lighting/706210-ReFive-Paragraph-Essay-Ideas.html#706210
    http://filmiskane.nu/?page_id=2&unapproved=1396528&moderation-hash=3f9487ab3a5f00ffb4bbe109a745e11b#comment-1396528
    http://sntpereleski.ru/viewtopic.php?f=2&t=177663
    http://stecoin.net/showthread.php?tid=27676&pid=863839#pid863839
    http://www.sherifstores.com/blog/%D8%A8%D8%A8?page=6911#comment-345960
    http://www.sherifstores.com/blog/%D8%A8%D8%A8?page=6911#comment-345961
    http://www.sherifstores.com/blog/%D8%A8%D8%A8?page=6911#comment-345962
    http://share.digitalmax.jp/bbs/viewtopic.php?f=5&t=5745405
    http://share.digitalmax.jp/bbs/viewtopic.php?f=5&t=5745404
    https://letstalktrucking.com/semi-truck-accident-videos/?unapproved=147221&moderation-hash=f05628c9e43789ecc4d3b029ee023415#comment-147221
    http://renault-russia.ru/forum/index.php?showtopic=1255798
    http://labor-economics.org/forum/viewtopic.php?f=5&t=1372794
    http://renault-russia.ru/forum/index.php?showtopic=1255797
    http://www.poultry.space/viewtopic.php?pid=391849#p391849
    http://shen500kapp.me/500KAppForum/viewtopic.php?f=2&t=568417
    http://www.fnsquad.uk/showthread.php?tid=11178
    http://www.youhui.group/forum.php?mod=viewthread&tid=1609909&extra=
    https://www.smzsf.com/thread-16973-1-1.html
    https://www.sonmafya.com/forum/showthread.php?tid=82280
    https://www.klucze.co.uk/forum1/Upload/showthread.php?tid=371072
    https://coinping.co/btc/viewtopic.php?pid=159011#p159011
    http://forum.swissponic.ch/viewtopic.php?f=13&t=694424
    http://studyforum.com.au/forums/topic/%d0%b4%d0%b8%d1%82%d1%8f-%d0%bf%d0%be%d0%b3%d0%be%d0%b4%d0%b0-%d1%81%d0%bc%d0%be%d1%82%d1%80%d0%b5%d1%82%d1%8c-%d0%be%d0%bd%d0%bb%d0%b0%d0%b9%d0%bd-%d0%b2-%d1%85%d0%be%d1%80%d0%be%d1%88%d0%b5%d0%bc-2/
    http://www.biocch.net/forum/showthread.php?tid=38285
    http://www.biocch.net/forum/showthread.php?tid=38284
    http://www.greatwallowners.com/viewtopic.php?f=5&t=205969
    http://www.triadbattle.com/forum/viewtopic.php?f=1&t=663804&p=1052411#p1052411
    http://megyaszoiskola.hu/forum/2-belepo-kapu/4575892-links-to-onion-sites-tor-browser-onion-web-addresses-of-sites-in-the-tor-browser-toronion-urls-directories-dark-wiki-onion-urls-tor-torsitebiz?limit=6&start=283236#9544122
    http://www.mcempire.net/forum/viewtopic.php?f=13&t=131838
    https://modelcarsforum.com/showthread.php?tid=94449
    http://labor-economics.org/forum/viewtopic.php?f=5&t=1371428
    http://regenboogkabouters.messageboard.nl/forum/viewtopic.php?f=15&t=953903
    http://regenboogkabouters.messageboard.nl/forum/viewtopic.php?f=15&t=953904
    http://www.lindner-essen.de/forum/viewtopic.php?f=3&t=1770350
    http://lindner-essen.de/forum/viewtopic.php?f=3&t=1770353
    http://ptsd2healthnonprofit.com/new_forums/viewtopic.php?f=24&t=905439
    http://forum.ornisoft.com/viewtopic.php?f=4&t=379832&p=436953#p436953
    http://forum.mobilew88.com/viewtopic.php?pid=201983#p201983
    http://forum.ornisoft.com/viewtopic.php?f=4&t=401699
    http://galb.soudi-rawhaniate.com/viewtopic.php?f=17&t=8678
    http://partnerschaftsvereine.landkreis-muenchen.de/showthread.php?tid=28809
    http://bis-zum-tod.eu/phpbb3/viewtopic.php?f=7&t=888194
    http://www.wxhxplt.com/thread-1246732-1-1.html
    http://jae-yong.info/viewthread.php?tid=53877&extra=
    https://btc357.com/forum/viewtopic.php?pid=177932#p177932
    https://cmaxfanatics.com/forum/showthread.php?p=591113
    https://www.krebs-kompass.de/showthread.php?p=1523087#post1523087
    https://www.7natlk.com/vb/showthread.php?p=40943#post40943
    https://w88homepage.com/w88/viewtopic.php?pid=79954#p79954
    http://www.kanada-forum.net/auswandern-f5/online-%C2%BB-%D0%A4%D0%B8%D0%BB%D1%8C%D0%BC-2019-%C2%BB–t109551.html
    http://www.ambervibe.com/forum/viewtopic.php?f=6&t=267201
    https://ladbrokes88.info/forum/viewtopic.php?pid=11809#p11809
    http://www.problogger.my/community/viewtopic.php?f=14&t=33025
    https://brodzio.pl/forum/showthread.php?tid=29549
    http://baugruppe.cz/forum/index.php?action=vthread&forum=7&topic=68819
    http://www.thedarkspade.com/viewtopic.php?f=10&t=594712
    http://www.forumgowes.com/thread-108238.html
    http://forum.matindvd.ir/viewtopic.php?pid=43222#p43222
    http://35.192.30.48/index.php/topic,17592.new.html#new
    http://dev.forums.codeguru.com/showthread.php?576320-%D0%A0%E2%80%9D%D0%A0%D1%91%D0%A1%E2%80%9A%D0%A1%D0%8F-%D0%A0%D1%97%D0%A0%D1%95%D0%A0%D1%96%D0%A0%D1%95%D0%A0%D2%91%D0%A1%E2%80%B9-%D0%A1%D0%83%D0%A0%D1%98%D0%A0%D1%95%D0%A1%E2%80%9A%D0%A1%D0%82%D0%A0%C2%B5%D0%A1%E2%80%9A%D0%A1%D0%8A-%D0%A0%D1%95%D0%A0%D0%85%D0%A0%C2%BB%D0%A0%C2%B0%D0%A0%E2%84%96%D0%A0%D0%85-BDRip&p=14653#post14653
    https://www.coronaforo.com/viewtopic.php?f=3&t=59031
    http://www.estudiandoenmadres.com.ar/foro/index.php?topic=48393.new#new
    https://forums.teslagaming.co.uk/showthread.php?tid=195950
    https://board.bmwcarmag.com/index.php?topic=439768.new#new
    http://82.165.122.32/index.php?topic=126771.new#new
    http://www.travianc.com/showthread.php?p=10490#post10490
    http://yourdragonsden.com/forum/viewtopic.php?f=30&t=7543
    http://falforum.org/viewtopic.php?f=4&t=31116
    https://kqra.com/showthread.php?tid=6908&pid=43241#pid43241
    http://stecoin.net/showthread.php?tid=209386
    https://capbiz.su/index.php?/topic/331983-ditia-pogody-smotret-film-onlain-v-khoroshem-kach/
    http://xtasyradio.com/forum/showthread.php?tid=274181
    http://www.cs.wdazone.ro/viewtopic.php?f=196&t=4488842
    https://btc-f.org/forum/viewtopic.php?pid=139470#p139470
    http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=19245
    http://49wd.com/forum.php?mod=viewthread&tid=50418&extra=
    https://btcasino.net/forum/viewtopic.php?pid=94866#p94866
    http://pistonpowercarclub.co.uk/index.php?topic=8979.new#new
    http://board.cxejohns.com/viewtopic.php?pid=502560#p502560
    https://rostokfamily.ru/forum/messages/forum1/topic7/message9355/?result=reply#message9355
    http://cwtr.xyz/forum.php?mod=viewthread&tid=3003&extra=
    https://xemtinhay.com/tinmoi/viewtopic.php?pid=87992#p87992
    https://ternate.karantina.pertanian.go.id/forum/viewtopic.php?pid=412380#p412380
    http://forum.smartsoft.it/viewtopic.php?p=9079#9079
    http://forum.realtor-room.ru/showthread.php?tid=10826&pid=34194#pid34194
    http://leeightontalksaboutpokemon.net/forums/showthread.php?54777-%D0%A0%E2%80%9D%D0%A0%D1%91%D0%A1%E2%80%9A%D0%A1%D0%8F-%D0%A0%D1%97%D0%A0%D1%95%D0%A0%D1%96%D0%A0%D1%95%D0%A0%D2%91%D0%A1%E2%80%B9-%D0%A0%D1%94%D0%A0%D1%91%D0%A0%D0%85%D0%A0%D1%95%D0%A0%D1%97%D0%A0%D1%95%D0%A0%D1%91%D0%A1%D0%83%D0%A0%D1%94&p=122299#post122299
    http://xn--c1akfd5azeb.xn--p1ai/forum/viewtopic.php?f=23&t=957020
    https://forum.mukhronus.com/thread-636574.html
    https://camp-market.ru/forum/messages/forum1/topic120/message3249/?result=reply#message3249

Leave a Reply

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