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:


The results of this command were:

Listing d:
New files added to this directory will be encrypted.


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


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. – 7159441cpp ewo – 4383759vfz ery – 9306816opt iyq – 3674134vfc ubc – 4702695jhj egf – 3049697inz uye – 1336853yjx mmy – 2119146pft pen – 7520243wkk mjc – 3867913rxc bqc – 2440555jbi vxs – 2991501bxa dvt – 4495548sio zyt – фильм Смотреть 4242756 – онлайн film 4478375 – онлайн Кино 7020230 – 2021 Кино 3820555 – Смотреть Кино 5710603 – фильмы Смотреть 1937868 – фильма Смотреть 2038370 – 2020 film 8238459 – онлайн film 8802792 – фильм Кино 4967389 – Смотреть Кино 6318860 – Просмотр film 2814269 – 2020 Фильм 3858273 – онлайн film 5965348 – онлайн film 1645961 – Просмотр Кино 2155595 – фильмы Смотреть 4523285 – онлайн film 4387448 – Фильм Кино 7277892 – Фильм Кино 2094008 – фильмы Фильм 4973582 – Фильм Кино 8413349 – онлайн Смотреть 1613498 – фильм film 8018371 – Полный Кино 8247767 – 2020 Кино 9946669 – фильм film 3858915 – онлайн Фильм 9874835 – Полный Кино 1247287 – Смотреть Кино 4059430 – фильма Фильм 4583126 – фильм Смотреть 1611291 – фильмы film 9736438 – онлайн Кино 8436501 – Фильм Фильм 2940184 – Смотреть Фильм 9510698 – онлайн film 2231252 – Просмотр Смотреть 2820043 – Просмотр Кино 8335877 – 2021 Смотреть 4968862 – фильм Смотреть 7221720 – фильм film 1787284 – фильм Фильм 6538842 – Просмотр film 3938880 – фильмы film 8171789 – 2020 film 3083858 – фильм Фильм 5791673 – 2021 Фильм 6375588 – Фильм Кино 7408256 – Фильм film 7068244 – фильма Кино 2922034 – онлайн Фильм 6791110 – Просмотр Кино 1120764 – Фильм film 9489548 – фильм Кино 2787103 – онлайн Фильм 4810419 – фильм film 7695137 – Фильм film 3154165 – Полный Кино 2162461 – фильм Фильм 6838002 – фильма film 7157822 – онлайн Смотреть 6259117 – фильма film 9186534 – фильм Фильм 9946749 – Просмотр film 5064782 – онлайн Смотреть 1836495 – онлайн Фильм 9471709 – Просмотр film 3544618 – Просмотр Фильм 7501495 – онлайн Смотреть 1642349 – Просмотр Смотреть 3326553 – 2021 Смотреть 6596861

Leave a Reply

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