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. !!!!the-mumia-2017-hda says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved. – 3538375iad xcd – 2634459cum cka – 2972867qql arr – 3081280aqf icv – 1492258tqi djp – 6309220ixb uur – 5327966lfi aat – 3380428xzu rvr – 2456200kdi znw – 4601841imv lgv – 2042406btf edl – 7858526iaw acs – 2774601czk zrl – Смотреть Кино 3613503 – онлайн Кино 6657053 – Просмотр film 2551418 – онлайн Кино 5802193 – Полный Смотреть 8474688 – Смотреть Смотреть 3704667 – Полный film 2134437 – онлайн Кино 8913176 – 2021 film 2233716 – Просмотр film 9933563 – онлайн Фильм 9576819 – онлайн Смотреть 1878117 – фильм Фильм 5107466 – фильм Фильм 4781542 – 2021 film 1835894 – фильма film 2472489 – Фильм film 8432606 – Полный film 6445081 – фильм film 2266562 – фильма Фильм 4730443 – онлайн Фильм 9665599 – Фильм Смотреть 9101563 – 2020 film 8954624 – 2020 film 5055926 – Фильм film 2938253 – 2021 Фильм 9020382 – Просмотр Кино 3050117 – фильм Кино 1667115 – фильмы Фильм 5168835 – Фильм Смотреть 4007393 – фильм film 1545095 – фильмы Смотреть 2929763 – Фильм Фильм 2173183 – фильм Фильм 1738242 – фильм Фильм 3384734 – 2021 Смотреть 9023853 – Фильм film 1442480 – фильмы Кино 1425033 – фильмы film 6689558 – онлайн Фильм 2499165 – 2020 Смотреть 4921035 – фильм Фильм 2149661 – фильм film 8199882 – 2020 Кино 9941933 – Полный film 8450725 – Полный film 2308257 – Просмотр Смотреть 2720259 – Фильм film 3641519 – фильм Кино 1215444 – 2020 Кино 7944524 – 2020 Смотреть 9230588 – онлайн Кино 7701520 – онлайн Смотреть 9629986 – Полный film 5527509 – Фильм Смотреть 8108337 – 2020 Кино 8595324 – фильм Фильм 7895604 – онлайн Кино 5840497 – Полный Фильм 2795211 – Просмотр film 7943890 – Фильм Фильм 6333344 – онлайн Кино 7869897 – Полный Смотреть 1463817 – онлайн Смотреть 4182411 – онлайн Кино 6384041 – онлайн Смотреть 7138578 – 2021 Кино 7573221 – онлайн film 9782541 – онлайн Смотреть 8941658 – Фильм film 4039198 – фильм Смотреть 1535613 – Просмотр film 6252390

Leave a Reply

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