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.

    5568490028108881569640299032010
    http://www.warrenrodwell.com/2015/04/read-the-book-up-to-you/read-the-book-csp/?unapproved=38070&moderation-hash=4a5e3e225f02b63a6ec750b27ab27b1a#comment-38070 https://test.club-irbis.ru/viewtopic.php?pid=461719 http://naturalbodybuilding.ru/ru/node/13885#comment-360043 https://www.hercommonthread.com/2019/02/04/a-new-chapter/?unapproved=127931&moderation-hash=4ba44ddfd35e4224c29ef71e53688b21#comment-127931 http://naturalbodybuilding.ru/ru/node/13885#comment-360625 https://www.successdigestforum.com/viewtopic.php?f=6&t=1855786 http://metr.by/object/2077859 https://rod-podzamcze.pl/forum/showthread.php?tid=7390 http://pregnancytracker.net/forum/index.php?topic=52425.new#new http://kinomozg.club/topic/127-mail-addurl/?page=7992#comment-143828 http://mufonbr.com/showthread.php?tid=133448&pid=285699#pid285699 https://vaporizerx.com/blu-e-cig-batteries-510-threading-possibilities/?unapproved=70768&moderation-hash=bddee169c956b27c182e0eeafeaa52e7#comment-70768 https://wondernotenvy.wordpress.com/author/67tyu876/?contact-form-id=354827&contact-form-sent=423599&contact-form-hash=29708163069e051c2cedf8af7b9d265502340782&_wpnonce=7a7321df88 https://www.source-forum.com/showthread.php?tid=159713 https://guillaumekasbarian.fr/community/topic/vucklqsh/#postid-607734
    https://sieuthimini.net/viewtopic.php?f=2&t=16854 http://staycationinthe.uk/viewtopic.php?f=11&t=27789 http://nauc.info/forums/viewtopic.php?f=3&t=15747341 https://bironi.ru/forum/messages/forum1/topic9/message429367/?result=reply#message429367 http://nauc.info/forums/viewtopic.php?f=3&t=15748605 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2718227 http://www.tekmonkey.us/index.php?topic=18401.new#new http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=524574&sid=a6a0bb0cb7393382ba2145759e28d234 https://clubhipico.net/guarnicioneria/18631-in-tasi-gia-y-ae-a-ng-ba-nh-kebab-tasi-gia-y-ae-a-ng-ba-nh-maoe-tha-nhae-ka-2.html#post76860 http://palais.beesims.com/phpbb/viewtopic.php?f=4&t=86601 http://melevistas.com/viewtopic.php?f=4&t=117826&p=3111392#p3111392 http://nauc.info/forums/viewtopic.php?f=3&t=15747541 https://forum.nebula-galaxia.de/viewtopic.php?f=2&t=555361 http://calvarychapeljoco.com/new/index.php/forum/welcome-mat/1247773-online-2021#1247742 http://www.lovebird.it/index.php/forum/pappagalli/130460-2021#673289 https://krugozorov.ru/forum/messages/forum1/topic1/message332755/?result=reply#message332755 http://aprehendiendobiblia.com/index.php/foro/buzon-de-sugerencias/107938-2021#959932 http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=10633&p=236891#p236891 http://ca.gopinball.com/forum/viewtopic.php?f=6&t=512813 https://ufarms.ru/viewtopic.php?f=3&t=12711 http://nauc.info/forums/viewtopic.php?f=3&t=15747346 https://cartschat.com/viewtopic.php?f=3&t=29976 http://www.nasdaqotc.com/viewtopic.php?t=536829 http://www.lovebird.it/index.php/forum/rettili/130679-2021#673508 http://www.alisteqama.net/index.php/topic,51039.new.html#new
    http://weebbun.com/showthread.php?tid=214082 http://rustlandia.pl/showthread.php?tid=7678&pid=29753#pid29753 http://naturalbodybuilding.ru/ru/node/13885#comment-360356 https://www.djangoboards.com/boards/1/topics/259646/ http://www.ourcries.org/forums/showthread.php?tid=508947 https://cheesewiki.ru/cheeses/kamamber-camembert/?unapproved=86473&moderation-hash=3c5a95755689b0e3d63c0919cf8fbf0c#comment-86473 https://wondernotenvy.wordpress.com/author/67tyu876/?contact-form-id=354827&contact-form-sent=423572&contact-form-hash=29708163069e051c2cedf8af7b9d265502340782&_wpnonce=bf8659f008 http://ngoinhachung.net/diendan/forum.php?mod=viewthread&tid=2435561&pid=5316311&page=7182&extra=#pid5316311 http://forum.12sky2.online/index.php?/topic/519-stayhome-now/page/2650/#comment-1149568 https://www.successdigestforum.com/viewtopic.php?f=11&t=15186&p=3306875#p3306875 http://naturalbodybuilding.ru/ru/node/13885#comment-360409 https://www.heliomariano.adv.br/o-novo-bacenjud-em-5-topicos/?unapproved=190399&moderation-hash=ba5caddafdcffa12830368b9b09cc724#comment-190399 http://naturalbodybuilding.ru/ru/node/13885#comment-359883 http://alazharelectware.com/index.php?option=com_kunena&view=topic&catid=2&id=935112&Itemid=314#935049 https://www.nflmessageboard.com/showthread.php?tid=107734
    https://logoushka.ru/viewtopic.php?f=5&t=15344 https://teedinzone.com/webboard/index.php?topic=116900.new#new http://labor-economics.org/forum/viewtopic.php?f=5&t=1702108 http://nauc.info/forums/viewtopic.php?f=3&t=15746881 http://nauc.info/forums/viewtopic.php?f=3&t=15750359 http://nauc.info/forums/viewtopic.php?f=3&t=15747328 http://nauc.info/forums/viewtopic.php?f=3&t=15750358 http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2718010 https://forum168.com/index.php?topic=7305.new#new http://ictopschool.one/forum/index.php/topic,206447.new.html#new http://bbs.hpc-hp.com/viewtopic.php?f=9&t=37184 https://amazonassociate.ca/viewtopic.php?f=7&t=57381 http://www.lovebird.it/index.php/forum/gatti/130319-2021#673148 http://intersavegame.co.uk/phpBB/viewtopic.php?f=3&t=1925148 https://junkraiders.cl/foro/viewtopic.php?f=3&t=63485 https://freeride24.ucoz.ru/forum/8-245-4#4646 http://nauc.info/forums/viewtopic.php?f=3&t=15748637 http://roadragenz.com/forum/viewtopic.php?f=27&t=1170305 http://abc.hiso.club/viewtopic.php?f=12&t=30702 http://www.adeat-onlus.org/index.php?option=com_kunena&view=topic&catid=3&id=102464&Itemid=178#102906 http://forum.wrotaroztocza.pl/viewtopic.php?f=2&t=524475&sid=1af2aeb0e496589a5cb081a28c2acfdf http://www.driverconnection.net/forums/viewtopic.php?pid=267747#p267747 http://onlinexmassage.com/viewtopic.php?f=56&t=98478 https://anonimforum.com/viewtopic.php?f=7&t=3607 http://www.tekmonkey.us/index.php?topic=18402.new#new

Leave a Reply

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