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.

    http://muscenter.ge/index.php/ru/forum?func=view&catid=4&id=869107#869107 – 7159441cpp ewo http://ipoteka-dlya-voennyh.ru/forums/topic/8233565 – 4383759vfz ery http://chimatamusic.net/db/viewtopic.php?p=1701709#1701709 – 9306816opt iyq http://www.playtouchgames.com/forum/thread2399.html – 3674134vfc ubc http://forum.nyugat.hu/index.php?showtopic=196&#entry0 – 4702695jhj egf https://sky-game.3dn.ru/forum/44-1636-1#5050 – 3049697inz uye https://profesionistiromi.ro/mesmerizing-models-on-live-cam-for-endless-xxx-pleasure/?unapproved=1140&moderation-hash=0c8a5991502b1f843b6f5533f96c4347#comment-1140 – 1336853yjx mmy http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=137569&Itemid=194#139295 – 2119146pft pen http://www.all-plastic.ru/forum/index.php?showtopic=59328 – 7520243wkk mjc https://e85vehicles.com/e85/index.php?/topic/10346-1130187/ – 3867913rxc bqc http://forum.nyugat.hu/index.php?showtopic=1424&#entry0 – 2440555jbi vxs http://chimatamusic.net/db/viewtopic.php?p=1701710#1701710 – 2991501bxa dvt http://forum.2serveothers.com/showthread.php?tid=389738 – 4495548sio zyt https://m.yandex.com/collections/card/5c1ebdacad792600315094cc/ – фильм Смотреть 4242756 https://m.yandex.com/collections/card/5c27725e58c41700787e5135/ – онлайн film 4478375 https://m.yandex.com/collections/card/5c26c6a6c863200079c078df/ – онлайн Кино 7020230 https://m.yandex.com/collections/card/5c2779c0ea4b100030e65060/ – 2021 Кино 3820555 https://m.yandex.com/collections/card/5c25cc60d87d110029427e4e/ – Смотреть Кино 5710603 https://m.yandex.com/collections/card/5c270672d41edd006362be76/ – фильмы Смотреть 1937868 https://m.yandex.com/collections/card/5c1ee10f9d8712007f0f099e/ – фильма Смотреть 2038370 https://m.yandex.com/collections/card/5c1eeefd2558e20073efce6c/ – 2020 film 8238459 https://m.yandex.com/collections/card/5c25825ebfe3df0073de3e76/ – онлайн film 8802792 https://m.yandex.com/collections/card/5c251849f070cf002dd10f31/ – фильм Кино 4967389 https://m.yandex.com/collections/card/5c26f381dba51500830ecf44/ – Смотреть Кино 6318860 https://m.yandex.com/collections/card/5c266e6dc9dc70002dc9e4ff/ – Просмотр film 2814269 https://m.yandex.com/collections/card/5c26fee911d9cf0073f15e33/ – 2020 Фильм 3858273 https://m.yandex.com/collections/card/5c1f8438dba515007a13dade/ – онлайн film 5965348 https://m.yandex.com/collections/card/5c2624ecd41edd008043d299/ – онлайн film 1645961 https://m.yandex.com/collections/card/5c1ea37e58c41700441354b9/ – Просмотр Кино 2155595 https://m.yandex.com/collections/card/5c2761d6ea4b10003f74a719/ – фильмы Смотреть 4523285 https://m.yandex.com/collections/card/5c1e9b66c9dc70007b698107/ – онлайн film 4387448 https://m.yandex.com/collections/card/5c25113424e06c004e32fa8a/ – Фильм Кино 7277892 https://m.yandex.com/collections/card/5c25864f145a380036023496/ – Фильм Кино 2094008 https://m.yandex.com/collections/card/5c1eac1dd87d110029413802/ – фильмы Фильм 4973582 https://m.yandex.com/collections/card/5c25a60bc9dc70006836da52/ – Фильм Кино 8413349 https://m.yandex.com/collections/card/5c25c1703a86bf002fd49ba8/ – онлайн Смотреть 1613498 https://m.yandex.com/collections/card/5c270a717222140051c2af90/ – фильм film 8018371 https://m.yandex.com/collections/card/5c25c2ae51bbf2002d21334b/ – Полный Кино 8247767 https://m.yandex.com/collections/card/5c265f773a86bf007af7b2d4/ – 2020 Кино 9946669 https://m.yandex.com/collections/card/5c27127a24e06c005f96edad/ – фильм film 3858915 https://m.yandex.com/collections/card/5c273b2b1bf2ad00798ba696/ – онлайн Фильм 9874835 https://m.yandex.com/collections/card/5c255bec68d69d002f0a819c/ – Полный Кино 1247287 https://m.yandex.com/collections/card/5c2586cc51bbf2002d212a9f/ – Смотреть Кино 4059430 https://m.yandex.com/collections/card/5c2678d19d8712007275c37f/ – фильма Фильм 4583126 https://m.yandex.com/collections/card/5c1f306758c4170037ccab7b/ – фильм Смотреть 1611291 https://m.yandex.com/collections/card/5c1f4aa3103db6008196aaf6/ – фильмы film 9736438 https://m.yandex.com/collections/card/5c1eb70351bbf20045e72456/ – онлайн Кино 8436501 https://m.yandex.com/collections/card/5c265f5c3bf6440044fe1996/ – Фильм Фильм 2940184 https://m.yandex.com/collections/card/5c27073ccd749600440bab6e/ – Смотреть Фильм 9510698 https://m.yandex.com/collections/card/5c263901d41edd0077178820/ – онлайн film 2231252 https://m.yandex.com/collections/card/5c275cd0f070cf003a5e670e/ – Просмотр Смотреть 2820043 https://m.yandex.com/collections/card/5c1eb64d5a29780072a4d3ec/ – Просмотр Кино 8335877 https://m.yandex.com/collections/card/5c26b4825a2978006f408a66/ – 2021 Смотреть 4968862 https://m.yandex.com/collections/card/5c26d2a2dba51500751e848b/ – фильм Смотреть 7221720 https://m.yandex.com/collections/card/5c1ed166ea4b100036aae542/ – фильм film 1787284 https://m.yandex.com/collections/card/5c2641154913c70055c46568/ – фильм Фильм 6538842 https://m.yandex.com/collections/card/5c251c8b1bf2ad006bc243d1/ – Просмотр film 3938880 https://m.yandex.com/collections/card/5c257fe596e2c90078824cfc/ – фильмы film 8171789 https://m.yandex.com/collections/card/5c277f15103db60063413108/ – 2020 film 3083858 https://m.yandex.com/collections/card/5c25550946db58003cf8bc9e/ – фильм Фильм 5791673 https://m.yandex.com/collections/card/5c1ea39746db580044f0e8e9/ – 2021 Фильм 6375588 https://m.yandex.com/collections/card/5c266cd8a897ed007f606131/ – Фильм Кино 7408256 https://m.yandex.com/collections/card/5c1ecd32cd74960066f698fb/ – Фильм film 7068244 https://m.yandex.com/collections/card/5c1f5a8bea4b10003f43d88e/ – фильма Кино 2922034 https://m.yandex.com/collections/card/5c25199d96e2c9007177dca8/ – онлайн Фильм 6791110 https://m.yandex.com/collections/card/5c255dec3a86bf0027e4ec2a/ – Просмотр Кино 1120764 https://m.yandex.com/collections/card/5c2749e1cd7496003b4671c7/ – Фильм film 9489548 https://m.yandex.com/collections/card/5c2607dd58c417002fa7d531/ – фильм Кино 2787103 https://m.yandex.com/collections/card/5c1ed644103db600791b95ee/ – онлайн Фильм 4810419 https://m.yandex.com/collections/card/5c2734ee1bf2ad00704acaef/ – фильм film 7695137 https://m.yandex.com/collections/card/5c1eca9adba51500792ed866/ – Фильм film 3154165 https://m.yandex.com/collections/card/5c274654145a3800288ac88b/ – Полный Кино 2162461 https://m.yandex.com/collections/card/5c2770fb4913c70063ffb54e/ – фильм Фильм 6838002 https://m.yandex.com/collections/card/5c1f14e9ea4b10002fcae9a5/ – фильма film 7157822 https://m.yandex.com/collections/card/5c2670474913c70063ff971a/ – онлайн Смотреть 6259117 https://m.yandex.com/collections/card/5c2724a5722214004c7f66a9/ – фильма film 9186534 https://m.yandex.com/collections/card/5c272140211718005cfe8cab/ – фильм Фильм 9946749 https://m.yandex.com/collections/card/5c25265c6b35ae005633a8ef/ – Просмотр film 5064782 https://m.yandex.com/collections/card/5c25de02cd74960069ace55b/ – онлайн Смотреть 1836495 https://m.yandex.com/collections/card/5c2684603a86bf0079d57aa0/ – онлайн Фильм 9471709 https://m.yandex.com/collections/card/5c2659dc51bbf20075f312c9/ – Просмотр film 3544618 https://m.yandex.com/collections/card/5c251598ad7926003903041b/ – Просмотр Фильм 7501495 https://m.yandex.com/collections/card/5c26feb4d41edd006500c061/ – онлайн Смотреть 1642349 https://m.yandex.com/collections/card/5c276fd0dba51500773321ce/ – Просмотр Смотреть 3326553 https://m.yandex.com/collections/card/5c261ea0bfe3df00762d6d6a/ – 2021 Смотреть 6596861

Leave a Reply

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