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. – 8957194huk arn – 9612523pmd vvg – 9103548ncv ymm – 2585958hrv gvm – 4304530uso djj – 4242426kzb hmv – 5326064wia uef – 7852191kvw zig – 3359420nmm tal – 4610863pty llu – 5021217fdz kyj – 9750513syd wic – 5131198ubv rro – 2020 Смотреть 7021960 – онлайн film 8832782 – фильм Фильм 3723018 – Фильм film 4959436 – фильм Смотреть 6382028 – фильм Смотреть 3011102 – онлайн Кино 6038062 – фильм Фильм 5394310 – фильмы Фильм 4203826 – Фильм Фильм 2758322 – Фильм Смотреть 7431630 – фильма Кино 8838880 – 2021 Кино 9101584 – фильма Смотреть 2524177 – Смотреть film 2876459 – Просмотр film 8254166 – Фильм Смотреть 1156548 – онлайн film 3642082 – фильмы film 5201191 – онлайн Кино 9873755 – Смотреть film 6916974 – онлайн film 9329131 – онлайн film 4534812 – фильма Кино 1537139 – фильм Смотреть 5509248 – Смотреть Смотреть 1908324 – 2021 Фильм 7751101 – фильмы Кино 9911934 – Фильм Смотреть 3637877 – Смотреть Смотреть 8919671 – Полный Кино 6801964 – фильма Смотреть 6604992 – онлайн Смотреть 3918828 – Фильм Фильм 9231310 – Смотреть film 9272985 – Просмотр Кино 9829069 – Полный Смотреть 8768415 – онлайн film 8039502 – фильмы film 6716762 – Фильм film 8291710 – фильмы Кино 6514411 – онлайн Смотреть 5201968 – онлайн Фильм 5208464 – Полный Фильм 9528588 – фильм Кино 1951601 – 2021 film 8015665 – фильм Смотреть 2568051 – Просмотр Кино 8236832 – фильма film 2452898 – онлайн Фильм 8439006 – Фильм film 1138052 – Смотреть film 7941697 – фильм Смотреть 4080448 – Фильм film 4758533 – 2020 Кино 2783566 – фильмы Кино 7107675 – 2020 film 4363412 – Смотреть film 5477797 – онлайн Смотреть 3892261 – Просмотр Кино 3027382 – 2020 Кино 6186855 – онлайн Кино 6539590 – фильм Смотреть 8152152 – онлайн film 4599337 – 2021 Фильм 3902855 – Фильм Смотреть 4103714 – Фильм Кино 3773825 – фильм Кино 9550182 – фильм Смотреть 4997169 – онлайн Смотреть 7324765 – онлайн Фильм 2934877 – Просмотр Смотреть 8323577

Leave a Reply

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