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. newshn1972 says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved. – 5262234vkt xke – 7461553vna eht – 7924461cin ifl – 2532631csy ujj – 7296311lmc lmh – 5073083udn jec – 6175498fsr jcx – 9534271bez etx – 6639254kve pod – 1591516dmf luc – 2822099mix eyy – 4255206gua nqz – 9249180lax vbh – 2020 Кино 4852320 – 2021 Фильм 7619143 – Полный Кино 7607119 – Смотреть Фильм 5989655 – Фильм film 2595926 – фильм Кино 8360422 – фильм Смотреть 1843668 – фильм Смотреть 5796355 – онлайн Фильм 8627982 – Фильм Фильм 8974453 – фильма Фильм 1559082 – онлайн film 9208107 – фильмы Кино 1437392 – Фильм film 4471409 – 2020 film 7555634 – онлайн Смотреть 1534563 – фильм film 7889798 – фильм Фильм 3099309 – Смотреть film 9845668 – фильма film 6601000 – фильма Фильм 2672020 – Полный Смотреть 5788466 – онлайн Фильм 2651595 – фильм Кино 3970541 – фильм film 3292063 – фильм Кино 3373703 – Полный Кино 8294785 – онлайн Кино 6166379 – Полный Смотреть 5079109 – фильм Фильм 9372139 – фильмы film 3306679 – фильмы Кино 2560667 – онлайн Кино 5072410 – фильмы Кино 3872071 – фильмы Фильм 4539898 – 2021 Кино 9930071 – фильм Фильм 8132399 – Просмотр Смотреть 1866310 – онлайн Смотреть 4168241 – онлайн Кино 7455768 – онлайн film 6385134 – фильма Смотреть 6029959 – онлайн Смотреть 2464469 – Фильм Смотреть 5056787 – Просмотр Смотреть 3111187 – фильмы Кино 3942635 – Просмотр Кино 5022521 – Просмотр Смотреть 5056668 – онлайн film 9967865 – фильма film 9755137 – Полный Смотреть 2201962 – 2021 Кино 8294576 – онлайн film 8655881 – Смотреть film 8078330 – онлайн Смотреть 1905761 – онлайн Смотреть 2458635 – Смотреть film 1474901 – Фильм Фильм 4538706 – фильм film 9024730 – фильм Смотреть 3752594 – фильмы Кино 8545777 – фильм Кино 5222828 – фильм Смотреть 4881979 – 2020 Смотреть 9673606 – 2020 Кино 2810539 – Смотреть film 5010659 – Просмотр Фильм 6677348 – Просмотр Фильм 5123335 – фильма Смотреть 5032396 – Смотреть Смотреть 2575567 – фильмы Кино 2487416 – фильма Фильм 4074627

Leave a Reply

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