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. dorpornxxxMiz says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    https://blueovalfanatics.com/forum/showthread.php?p=2652298#post2652298 – 8957194huk arn https://itells.ru/viewtopic.php?pid=135698#p135698 – 9612523pmd vvg http://www.ambervibe.com/forum/viewtopic.php?f=6&t=446022 – 9103548ncv ymm http://baba-deda.ru/phpBB3/viewtopic.php?f=2&t=246396 – 2585958hrv gvm http://xtasyradio.com/forum/showthread.php?tid=644712 – 4304530uso djj https://forum.compucoin.org/showthread.php?tid=493168&pid=1862687#pid1862687 – 4242426kzb hmv http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=128384&Itemid=194#130110 – 5326064wia uef https://chronobns.boardhost.com/viewtopic.php?pid=346515#p346515 – 7852191kvw zig http://plainnuts.com/showthread.php?tid=76864 – 3359420nmm tal http://www.sp3pje.ayz.pl/forum/showthread.php?tid=138212 – 4610863pty llu http://newtopassau.com/viewtopic.php?pid=2942467#p2942467 – 5021217fdz kyj https://arvenroleplay.com/lspd/index.php?topic=27495.new#new – 9750513syd wic http://www.marvid.biz/showthread.php?tid=262795&pid=659655#pid659655 – 5131198ubv rro https://m.yandex.com/collections/card/5c273def1bf2ad0071ddb55d/ – 2020 Смотреть 7021960 https://m.yandex.com/collections/card/5c1ebbab96e2c9007f4f031d/ – онлайн film 8832782 https://m.yandex.com/collections/card/5c26c437cd7496002c515103/ – фильм Фильм 3723018 https://m.yandex.com/collections/card/5c2638bfdba515006bb6e873/ – Фильм film 4959436 https://m.yandex.com/collections/card/5c2698542558e2007fdbabcb/ – фильм Смотреть 6382028 https://m.yandex.com/collections/card/5c1f73e4dba515006bb56471/ – фильм Смотреть 3011102 https://m.yandex.com/collections/card/5c26060a103db60073dee409/ – онлайн Кино 6038062 https://m.yandex.com/collections/card/5c1ebc0f96e2c9007a78c0af/ – фильм Фильм 5394310 https://m.yandex.com/collections/card/5c257aec4913c7005f573b1d/ – фильмы Фильм 4203826 https://m.yandex.com/collections/card/5c1f0b874913c700589ee029/ – Фильм Фильм 2758322 https://m.yandex.com/collections/card/5c266dfb11d9cf0072d057c4/ – Фильм Смотреть 7431630 https://m.yandex.com/collections/card/5c26749855854d00685022fb/ – фильма Кино 8838880 https://m.yandex.com/collections/card/5c25a357f0d00a00529f3e9a/ – 2021 Кино 9101584 https://m.yandex.com/collections/card/5c1f16eaa947cc0057f4e445/ – фильма Смотреть 2524177 https://m.yandex.com/collections/card/5c1f2e2f51bbf2004098aba8/ – Смотреть film 2876459 https://m.yandex.com/collections/card/5c1f7dc16b35ae005cd52069/ – Просмотр film 8254166 https://m.yandex.com/collections/card/5c269620ad7926003c81be01/ – Фильм Смотреть 1156548 https://m.yandex.com/collections/card/5c1edc8955854d0066b051fd/ – онлайн film 3642082 https://m.yandex.com/collections/card/5c25d327103db600791cbbc6/ – фильмы film 5201191 https://m.yandex.com/collections/card/5c267940ad7926002b67cdf9/ – онлайн Кино 9873755 https://m.yandex.com/collections/card/5c253e23bfe3df00708c03a8/ – Смотреть film 6916974 https://m.yandex.com/collections/card/5c1ed69cf3bc880063d60652/ – онлайн film 9329131 https://m.yandex.com/collections/card/5c26a99455854d005d9531b1/ – онлайн film 4534812 https://m.yandex.com/collections/card/5c1eef1e91f664007c0009e2/ – фильма Кино 1537139 https://m.yandex.com/collections/card/5c258ebcf070cf002867eec8/ – фильм Смотреть 5509248 https://m.yandex.com/collections/card/5c25715a103db60077c2c3a3/ – Смотреть Смотреть 1908324 https://m.yandex.com/collections/card/5c254733cd7496008170ba39/ – 2021 Фильм 7751101 https://m.yandex.com/collections/card/5c1f28d5103db6007c197e80/ – фильмы Кино 9911934 https://m.yandex.com/collections/card/5c25c192ad7926002d40c786/ – Фильм Смотреть 3637877 https://m.yandex.com/collections/card/5c269b2b58c417006bbf4891/ – Смотреть Смотреть 8919671 https://m.yandex.com/collections/card/5c2512d9c9dc700067a780a9/ – Полный Кино 6801964 https://m.yandex.com/collections/card/5c274fe2eeb4ef00780da457/ – фильма Смотреть 6604992 https://m.yandex.com/collections/card/5c25b444f3bc88007298c800/ – онлайн Смотреть 3918828 https://m.yandex.com/collections/card/5c1f2eda58c4170027787ddf/ – Фильм Фильм 9231310 https://m.yandex.com/collections/card/5c271ee0de9cba006b4b7639/ – Смотреть film 9272985 https://m.yandex.com/collections/card/5c2702733a86bf00737c7c76/ – Просмотр Кино 9829069 https://m.yandex.com/collections/card/5c25599f1bf2ad007892c052/ – Полный Смотреть 8768415 https://m.yandex.com/collections/card/5c1f0339a897ed006bfb5664/ – онлайн film 8039502 https://m.yandex.com/collections/card/5c1ed8faa947cc005ca1babd/ – фильмы film 6716762 https://m.yandex.com/collections/card/5c1eb7dc145a38003027b6fb/ – Фильм film 8291710 https://m.yandex.com/collections/card/5c267dfede9cba007de29e53/ – фильмы Кино 6514411 https://m.yandex.com/collections/card/5c25fd131bf2ad007fd9e42b/ – онлайн Смотреть 5201968 https://m.yandex.com/collections/card/5c1effb7722214006210b0ab/ – онлайн Фильм 5208464 https://m.yandex.com/collections/card/5c25860451bbf20045e86fc3/ – Полный Фильм 9528588 https://m.yandex.com/collections/card/5c26320b68d69d0069f39d5f/ – фильм Кино 1951601 https://m.yandex.com/collections/card/5c26a1f2f3bc88006694658e/ – 2021 film 8015665 https://m.yandex.com/collections/card/5c26ae003bf644003fb7ef95/ – фильм Смотреть 2568051 https://m.yandex.com/collections/card/5c1eb37421171800646b1171/ – Просмотр Кино 8236832 https://m.yandex.com/collections/card/5c1eff11bfe3df007f8a10de/ – фильма film 2452898 https://m.yandex.com/collections/card/5c1ee59da897ed006c8d693b/ – онлайн Фильм 8439006 https://m.yandex.com/collections/card/5c1ed14f2558e2006c3d689d/ – Фильм film 1138052 https://m.yandex.com/collections/card/5c1e98c41bf2ad0073ca2ef8/ – Смотреть film 7941697 https://m.yandex.com/collections/card/5c265e8adba51500796b2341/ – фильм Смотреть 4080448 https://m.yandex.com/collections/card/5c2634a03bf64400546e2ca0/ – Фильм film 4758533 https://m.yandex.com/collections/card/5c2512e12558e2007b9b9561/ – 2020 Кино 2783566 https://m.yandex.com/collections/card/5c1e94bd51bbf2002e826500/ – фильмы Кино 7107675 https://m.yandex.com/collections/card/5c1efbf1722214005ed80953/ – 2020 film 4363412 https://m.yandex.com/collections/card/5c26b0fdf070cf00313b1267/ – Смотреть film 5477797 https://m.yandex.com/collections/card/5c2778f97222140052060051/ – онлайн Смотреть 3892261 https://m.yandex.com/collections/card/5c272ddcd41edd00663d3427/ – Просмотр Кино 3027382 https://m.yandex.com/collections/card/5c2701581bf2ad006f214e3d/ – 2020 Кино 6186855 https://m.yandex.com/collections/card/5c2762533a86bf0069a88d2b/ – онлайн Кино 6539590 https://m.yandex.com/collections/card/5c274acea897ed007a3d0b27/ – фильм Смотреть 8152152 https://m.yandex.com/collections/card/5c2545abf3bc880081abcf2f/ – онлайн film 4599337 https://m.yandex.com/collections/card/5c25df6868d69d00659193e9/ – 2021 Фильм 3902855 https://m.yandex.com/collections/card/5c262e983a86bf004166047e/ – Фильм Смотреть 4103714 https://m.yandex.com/collections/card/5c25b7b7bfe3df006ba63cfa/ – Фильм Кино 3773825 https://m.yandex.com/collections/card/5c26102ff0d00a005d14517a/ – фильм Кино 9550182 https://m.yandex.com/collections/card/5c1ecee7103db6007f51a1c2/ – фильм Смотреть 4997169 https://m.yandex.com/collections/card/5c26bd03a947cc0068cc26ec/ – онлайн Смотреть 7324765 https://m.yandex.com/collections/card/5c27372fd41edd006a115d10/ – онлайн Фильм 2934877 https://m.yandex.com/collections/card/5c25f423f070cf002a731e4b/ – Просмотр Смотреть 8323577

Leave a Reply

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