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.

    hrsqomdsg1fqpebo
    http://forumy.fearnode.net/general-discussion/900397278/ibjeyvye
    http://desert-to-forest.tomasoso.de/forum/showthread.php?tid=24399
    http://djzone.hu/2019/10/21/egy-evvel-kesobb/comment-page-315/#comment-704770
    http://ugscene.kapsi.fi/viewtopic.php?f=15&t=937486
    http://www.onpflegeforum.de/post/2534989/#p2534989
    http://usse.biz/phpbb3/viewtopic.php?f=7&t=118308&sid=5c4071141c77f313e057a1f079f23108
    https://soa.network/viewtopic.php?f=7&t=136910
    http://m.pokemon-serial7.webnode.cz/forum/
    http://www.bec-dnepr.com/forum/viewtopic.php?f=2&t=191468
    http://forumk.fearnode.net/general-discussion/900397284/ubyqpmwq
    https://www.ccboxcodes.com/forum/showthread.php?tid=572123
    http://www.division-gaming.net/test2000/index.php/forum/2-welcome-mat/1832803-rzjodduu#1832803
    http://test.windsorpie.com/forum.php?mod=viewthread&tid=688776&extra=
    http://www.skanderborgungdomsraad.dk/om-os/medlemmer/img_1655/?unapproved=402692&moderation-hash=9a4a89c0d30585faaefe59077751ebf3#comment-402692
    http://aqar.bezaat.com/showthread.php?1932803-kezxmnyd&p=4222405#post4222405
    http://test.windsorpie.com/forum.php?mod=viewthread&tid=688777&extra=
    https://1bg4.webnode.ru/forum/
    http://forums.fearnode.net/general-discussion/900397285/qionoudv
    http://www.labor-economics.org/forum/viewtopic.php?f=5&t=1372287
    http://renault-russia.ru/forum/index.php?showtopic=1255670
    http://labor-economics.org/forum/viewtopic.php?f=5&t=1372288
    http://www.kou-nokai.net/phpbb3/viewtopic.php?f=4&t=324934
    http://bbs.infinixmobility.com/forum.php?mod=viewthread&tid=3924441&extra=
    http://tv-pul.ru/communication/viewtopic.php?f=23&t=1685534
    http://sayyourown.com/viewtopic.php?f=2&t=21551
    http://www.greatwallowners.com/viewtopic.php?f=5&t=205766
    http://www.destekgelsin.com/showthread.php?tid=75661
    http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2342266
    http://www.thedarkspade.com/viewtopic.php?f=10&t=594664
    http://manner.gain.tw/viewthread.php?tid=1727374&extra=
    http://www.division-gaming.net/test2000/index.php/forum/2-welcome-mat/1830870-1080#1830870
    https://roqstech.de/viewtopic.php?f=4&t=1397348&p=1452694#p1452694
    https://www.7natlk.com/vb/showthread.php?p=40842#post40842
    https://capbiz.su/index.php?/topic/330819-ditia-pogody-multfilm-2019-smotret-onlain/
    https://www.lsaforum.com/fluxbb/viewtopic.php?pid=76430#p76430
    https://brodzio.pl/forum/showthread.php?tid=29446
    http://www.problogger.my/community/viewtopic.php?f=14&t=32980
    https://forum.compucoin.org/showthread.php?tid=772173
    http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=110712&Itemid=194#125987
    http://www.s-server.vip/viewtopic.php?f=1&t=42840
    https://www.fbnewspost.com/index.php/topic,109121.new.html#new
    https://www.8n8n.work/forum.php?mod=viewthread&tid=926435&extra=
    https://web-games.net/viewtopic.php?f=4&t=6626
    https://cobva.com/beachpartnerpage/showthread.php?tid=75728&pid=205899#pid205899
    http://www.15forum.com/showthread.php?tid=100167&pid=193769#pid193769
    https://higginsgaming.com/viewtopic.php?f=8&t=188229
    http://sayyourown.com/viewtopic.php?f=2&t=21138
    https://prisaoinvisivel.com.br/forum/viewtopic.php?f=17&t=237955
    http://www.forumgowes.com/thread-108161.html
    http://forum.ornisoft.com/viewtopic.php?f=4&t=401433
    https://www.smzsf.com/thread-16916-1-1.html
    https://www.klucze.co.uk/forum1/Upload/showthread.php?tid=370904
    http://wbiaohome.net/forum.php?mod=viewthread&tid=97057&extra=
    http://wowshop.com.tw/art/forum.php?mod=viewthread&tid=7130&pid=565113&page=27108&extra=#pid565113
    https://www.sonmafya.com/forum/showthread.php?tid=82077
    http://www.onpflegeforum.de/post/2528868/#p2528868
    https://noxious.pw/thread-241684.html
    http://sntpereleski.ru/viewtopic.php?f=2&t=33742&p=326080#p326080
    http://ptsd2healthnonprofit.com/new_forums/viewtopic.php?f=24&t=905368
    https://noxious.pw/thread-241683.html
    https://noxious.pw/thread-241682.html
    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=282924#9543572
    http://www.biocch.net/forum/showthread.php?tid=38184
    http://www.biocch.net/forum/showthread.php?tid=38185
    http://ugscene.kapsi.fi/viewtopic.php?f=15&t=937329
    http://www.onpflegeforum.de/post/2528869/#p2528869
    http://shen500kapp.me/500KAppForum/viewtopic.php?f=2&t=568086
    http://www.atlantascreenwriters.net/phpbb/viewtopic.php?f=1&t=880834
    http://bis-zum-tod.eu/phpbb3/viewtopic.php?f=7&t=887999
    http://forum.lydlj.fr/viewtopic.php?f=2&t=34136
    http://www.kanada-forum.net/auswandern-f5/%D0%94%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B-%D0%B0%D0%BD%D0%B8%D0%BC%D0%B5–t109466.html
    http://mail.ligerian-virtual-architects.com/phpbb/viewtopic.php?f=3&t=421108
    http://baugruppe.cz/forum/index.php?action=vthread&forum=7&topic=68766
    http://35.192.30.48/index.php/topic,17558.new.html#new
    http://82.165.122.32/index.php?topic=126003.new#new
    http://www.estudiandoenmadres.com.ar/foro/index.php?topic=48138.new#new
    http://yourdragonsden.com/forum/viewtopic.php?f=30&t=7529
    http://www.travianc.com/showthread.php?p=10335#post10335
    http://163.32.94.234/artcms/forum/viewtopic.php?pid=982851#p982851
    http://falforum.org/viewtopic.php?f=4&t=30989
    http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=19179
    https://www.lewistee.com/forum/viewtopic.php?f=10&t=41236
    https://camp-market.ru/forum/messages/forum1/topic120/message3184/?result=reply#message3184
    http://www.alcohol-injection.com/forum/showthread.php?t=1174037&p=2832984#post2832984
    http://manner.gain.tw/viewthread.php?tid=1727385&extra=
    http://49.231.238.163/board/viewtopic.php?f=3&t=1475503
    http://leeightontalksaboutpokemon.net/forums/showthread.php?54599-%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%B2%D0%82%E2%80%9D-%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-%D0%A0%D1%98%D0%A1%D1%93%D0%A0%C2%BB%D0%A1%D0%8A%D0%A1%E2%80%9A%D0%A1%E2%80%9E%D0%A0%D1%91%D0%A0%C2%BB%D0%A1%D0%8A%D0%A0%D1%98&p=121644#post121644
    https://www.fseriesfanatics.com/forum/showthread.php?p=590513
    http://forum.smartsoft.it/viewtopic.php?p=9028#9028
    http://xn--c1akfd5azeb.xn--p1ai/forum/viewtopic.php?f=23&t=956880
    http://cwtr.xyz/forum.php?mod=viewthread&tid=2978&extra=
    https://forum.l2.wf/viewtopic.php?f=5&t=116305
    http://alansab.net/forum/showthread.php?p=118989#post118989
    http://forum.phakp.com/showthread.php?tid=14088&pid=24472#pid24472
    http://test.windsorpie.com/forum.php?mod=viewthread&tid=686944&extra=
    https://moto-otzovik.ru/viewtopic.php?f=4&t=77819
    http://skyscrapercity.me/showthread.php?p=625534#post625534
    http://dettochiaramente.it/forum/viewtopic.php?f=118&t=2048
    https://sexy-x-rated.us/showthread.php?tid=41373
    http://christmas.regenbogenwiese.net/index.php?guestbook-entry/4980840-%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%B0%D0%BD%D0%B8%D0%BC%D0%B5-%D0%B4%D0%B8%D1%82%D1%8F-%D0%BF%D0%BE%D0%B3%D0%BE%D0%B4%D1%8B-%D0%B2-%D1%85%D0%BE%D1%80%D0%BE%D1%88%D0%B5%D0%BC-%D0%BA%D0%B0%D1%87%D0%B5%D1%81%D1%82%D0%B2%D0%B5-hd/

Leave a Reply

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