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

    https://q8mazad.com/vb/showthread.php?p=2343403#post2343403 – 5262234vkt xke http://umsltan.com/vb/showthread.php?p=605268#post605268 – 7461553vna eht http://concerns.sportshouse.com.ph/showthread.php?tid=191626&pid=1536620#pid1536620 – 7924461cin ifl http://libria.su/librarium-elementum/forum/viewtopic.php?f=19&t=337992 – 2532631csy ujj http://tangoxchange.org/viewtopic.php?f=2&t=261296 – 7296311lmc lmh http://demo-scripts.com/fluxbb/viewtopic.php?pid=25415#p25415 – 5073083udn jec http://monespace.adepul.fr/forum/showthread.php?tid=285926 – 6175498fsr jcx https://mysourcetelevision.com/forum/showthread.php?tid=438199 – 9534271bez etx http://www.rakuyori.com/viewtopic.php?p=656006#656006 – 6639254kve pod http://cu25837.tmweb.ru/forums/topic/9575134/ – 1591516dmf luc http://forums.techagelabs.com/showthread.php?tid=6559 – 2822099mix eyy http://biosyukle.com/showthread.php?tid=97358 – 4255206gua nqz https://wmzforum.info/showthread.php?p=306599#post306599 – 9249180lax vbh https://m.yandex.com/collections/card/5c27166dc9dc70002c3c0ed0/ – 2020 Кино 4852320 https://m.yandex.com/collections/card/5c2550b3211718005bc5fcbd/ – 2021 Фильм 7619143 https://m.yandex.com/collections/card/5c262c4f9d87120082ad646e/ – Полный Кино 7607119 https://m.yandex.com/collections/card/5c25a452cd7496006d3587d9/ – Смотреть Фильм 5989655 https://m.yandex.com/collections/card/5c26c03aea4b10003f748c89/ – Фильм film 2595926 https://m.yandex.com/collections/card/5c1f6acef0d00a005483e50c/ – фильм Кино 8360422 https://m.yandex.com/collections/card/5c1eac6d46db580027e3e31d/ – фильм Смотреть 1843668 https://m.yandex.com/collections/card/5c26d5afeeb4ef007246f686/ – фильм Смотреть 5796355 https://m.yandex.com/collections/card/5c25ab59d87d11002af9f775/ – онлайн Фильм 8627982 https://m.yandex.com/collections/card/5c2519c711d9cf006bcd2b43/ – Фильм Фильм 8974453 https://m.yandex.com/collections/card/5c1ea4edc9dc70006f85f1cb/ – фильма Фильм 1559082 https://m.yandex.com/collections/card/5c2598cdcd7496006fc4fbed/ – онлайн film 9208107 https://m.yandex.com/collections/card/5c25dfa0d87d1100388ff929/ – фильмы Кино 1437392 https://m.yandex.com/collections/card/5c1f70826b35ae004c9faafb/ – Фильм film 4471409 https://m.yandex.com/collections/card/5c265c393a86bf0069a86182/ – 2020 film 7555634 https://m.yandex.com/collections/card/5c1f450c91f664006f0b0e4b/ – онлайн Смотреть 1534563 https://m.yandex.com/collections/card/5c1e9f232558e2007facf49e/ – фильм film 7889798 https://m.yandex.com/collections/card/5c254cf1f0d00a00529f398f/ – фильм Фильм 3099309 https://m.yandex.com/collections/card/5c25225e21171800561cc795/ – Смотреть film 9845668 https://m.yandex.com/collections/card/5c26659a24e06c0067c34961/ – фильма film 6601000 https://m.yandex.com/collections/card/5c26e3e9ad7926003f90489e/ – фильма Фильм 2672020 https://m.yandex.com/collections/card/5c261e8adba5150076ae7dc7/ – Полный Смотреть 5788466 https://m.yandex.com/collections/card/5c1eb24c3a86bf003df06105/ – онлайн Фильм 2651595 https://m.yandex.com/collections/card/5c267629a947cc004e178a6d/ – фильм Кино 3970541 https://m.yandex.com/collections/card/5c1f569dde9cba00384758ca/ – фильм film 3292063 https://m.yandex.com/collections/card/5c2589a8d87d110036adfe48/ – фильм Кино 3373703 https://m.yandex.com/collections/card/5c1f1446a897ed0074891407/ – Полный Кино 8294785 https://m.yandex.com/collections/card/5c1f2f39f0d00a00539c0482/ – онлайн Кино 6166379 https://m.yandex.com/collections/card/5c1f4f63f070cf004282299c/ – Полный Смотреть 5079109 https://m.yandex.com/collections/card/5c26e162eeb4ef007cebbc66/ – фильм Фильм 9372139 https://m.yandex.com/collections/card/5c2767295a2978006e029d77/ – фильмы film 3306679 https://m.yandex.com/collections/card/5c265b0b58c417006e4f0069/ – фильмы Кино 2560667 https://m.yandex.com/collections/card/5c264aa6f3bc88006ddbd8a4/ – онлайн Кино 5072410 https://m.yandex.com/collections/card/5c276de0eeb4ef0082f4284f/ – фильмы Кино 3872071 https://m.yandex.com/collections/card/5c255b83eeb4ef00763dc163/ – фильмы Фильм 4539898 https://m.yandex.com/collections/card/5c257ce5f3bc880063d74949/ – 2021 Кино 9930071 https://m.yandex.com/collections/card/5c1e96f6dba515006f3dcc3b/ – фильм Фильм 8132399 https://m.yandex.com/collections/card/5c25359b4913c70052df54ae/ – Просмотр Смотреть 1866310 https://m.yandex.com/collections/card/5c26e003d41edd0077873e54/ – онлайн Смотреть 4168241 https://m.yandex.com/collections/card/5c1f5e249d871200753a1928/ – онлайн Кино 7455768 https://m.yandex.com/collections/card/5c25f8628ba14a003103cb3a/ – онлайн film 6385134 https://m.yandex.com/collections/card/5c1f378ad41edd007b600e38/ – фильма Смотреть 6029959 https://m.yandex.com/collections/card/5c1f4a2cc9dc700075fb9e6f/ – онлайн Смотреть 2464469 https://m.yandex.com/collections/card/5c2598c39d8712006a7a56fe/ – Фильм Смотреть 5056787 https://m.yandex.com/collections/card/5c266fba2558e2006653a963/ – Просмотр Смотреть 3111187 https://m.yandex.com/collections/card/5c2644ff1bf2ad007f8f788e/ – фильмы Кино 3942635 https://m.yandex.com/collections/card/5c26afeb58c417007574f99d/ – Просмотр Кино 5022521 https://m.yandex.com/collections/card/5c1ed47f6b35ae00570a9ab3/ – Просмотр Смотреть 5056668 https://m.yandex.com/collections/card/5c272b97c8632000817b0f18/ – онлайн film 9967865 https://m.yandex.com/collections/card/5c251b07f070cf0046756ec0/ – фильма film 9755137 https://m.yandex.com/collections/card/5c26e25c145a380037745cb6/ – Полный Смотреть 2201962 https://m.yandex.com/collections/card/5c26a3059d8712006e2d6db0/ – 2021 Кино 8294576 https://m.yandex.com/collections/card/5c1efa003a86bf0040aca287/ – онлайн film 8655881 https://m.yandex.com/collections/card/5c260ce568d69d006affbae8/ – Смотреть film 8078330 https://m.yandex.com/collections/card/5c1f3dad46db58003448e045/ – онлайн Смотреть 1905761 https://m.yandex.com/collections/card/5c1ed89511d9cf00707704ac/ – онлайн Смотреть 2458635 https://m.yandex.com/collections/card/5c1edd39a947cc00539340f4/ – Смотреть film 1474901 https://m.yandex.com/collections/card/5c2740ae6b35ae006722a268/ – Фильм Фильм 4538706 https://m.yandex.com/collections/card/5c25cd8ecd749600779b799a/ – фильм film 9024730 https://m.yandex.com/collections/card/5c252229145a38003b1f4200/ – фильм Смотреть 3752594 https://m.yandex.com/collections/card/5c260a53145a380036024830/ – фильмы Кино 8545777 https://m.yandex.com/collections/card/5c1ec8c411d9cf008819a43d/ – фильм Кино 5222828 https://m.yandex.com/collections/card/5c262feede9cba0079c6f43d/ – фильм Смотреть 4881979 https://m.yandex.com/collections/card/5c1eeb4af070cf003e071cf1/ – 2020 Смотреть 9673606 https://m.yandex.com/collections/card/5c25a56b2558e200653cb3ce/ – 2020 Кино 2810539 https://m.yandex.com/collections/card/5c1f02253bf6440069efb53c/ – Смотреть film 5010659 https://m.yandex.com/collections/card/5c26e0ae8ba14a006e6ad3d8/ – Просмотр Фильм 6677348 https://m.yandex.com/collections/card/5c1e9feb91f6640068b9da94/ – Просмотр Фильм 5123335 https://m.yandex.com/collections/card/5c26b13df070cf003e06ca38/ – фильма Смотреть 5032396 https://m.yandex.com/collections/card/5c1e9741f3bc880062aea6a4/ – Смотреть Смотреть 2575567 https://m.yandex.com/collections/card/5c25373c1bf2ad007c9d9901/ – фильмы Кино 2487416 https://m.yandex.com/collections/card/5c1eb783c863200080841de5/ – фильма Фильм 4074627

Leave a Reply

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