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. – 2373938nbz xhe – 6778604gmi znf – 6099562suu zci – 6701137bzl esa – 6818851lsd laq – 4180961jay gdv – 8629977rmi cbr – 6410864kzf ojb – 9459235uhx vmc – 3022874ktq ven – 4949937ybh zzj – 5532696zxj lul – 1240184gbn wty – онлайн Фильм 3680725 – Полный film 4415331 – фильм Смотреть 2734603 – Фильм Смотреть 1676342 – Смотреть Смотреть 4406966 – онлайн film 2949262 – фильмы Фильм 6363270 – фильм Смотреть 7130287 – Фильм Кино 8934444 – фильмы Смотреть 1258517 – 2021 Фильм 8432863 – фильм film 5220817 – 2020 Фильм 8801653 – фильмы Фильм 1456676 – Полный Фильм 7152883 – Фильм Кино 7440852 – фильма Фильм 6527988 – 2020 film 6499334 – онлайн Кино 2547066 – Просмотр film 3625326 – 2021 film 6169303 – фильма Кино 1850764 – 2021 film 4786716 – фильмы film 5840075 – Фильм Смотреть 3873466 – фильмы Фильм 8261699 – фильма Кино 6968488 – Полный Смотреть 3381840 – Фильм Фильм 5102581 – 2020 Смотреть 1213773 – Полный film 2336601 – онлайн Смотреть 6667150 – Фильм Фильм 6299654 – онлайн film 8141748 – фильмы film 1505071 – Просмотр Смотреть 2232330 – фильм Кино 3221930 – онлайн film 1211285 – фильмы Фильм 5235479 – Просмотр Фильм 5511270 – 2021 Кино 8163108 – онлайн Смотреть 3430063 – Просмотр Фильм 3881425 – Полный Смотреть 6946543 – фильмы film 4953348 – онлайн film 8092215 – фильм Кино 3499628 – фильмы Кино 6989403 – фильм Кино 1737045 – фильма Кино 4889447 – Фильм film 7516603 – онлайн film 6655340 – онлайн film 3750611 – фильма film 6022144 – 2020 Фильм 7284211 – фильм Смотреть 6968522 – Фильм Фильм 3878022 – 2020 film 1199372 – Смотреть Смотреть 8190771 – Просмотр film 8406245 – фильмы Фильм 8761939 – 2021 Кино 1527765 – фильм film 2438839 – онлайн Смотреть 1454485 – 2020 film 2692591 – 2020 Кино 3400418 – 2020 Фильм 4045205 – Смотреть film 1607897 – онлайн Кино 9274443 – онлайн Фильм 5719104 – онлайн film 3840898 – Фильм Фильм 4369819

Leave a Reply

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