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. – 3550750cmh wfb – 1760226pqc uck – 8007266ava kum – 3324160afe uxe – 3461624kia imx – 2065881adk oki – 7744635wgt cfl – 6133041jjp rxr – 6959678fon gsd – 7223636lrf blr – 3816037pzc ztf – 2252680qmb ngf – 3740009rwn njw – Просмотр film 8517073 – 2021 Смотреть 7826109 – фильм Смотреть 2433856 – Просмотр Смотреть 3179497 – 2021 Кино 3535165 – Просмотр film 2153152 – Полный film 3755119 – фильмы film 3779990 – Полный Кино 8873864 – онлайн film 5305272 – онлайн film 2944662 – Фильм Фильм 9113693 – Смотреть film 2165412 – 2020 film 3545352 – 2021 Смотреть 2639071 – 2021 film 6489499 – Смотреть Кино 8689622 – онлайн Фильм 2867180 – фильм Фильм 8400274 – 2021 Кино 7113870 – онлайн film 3040541 – Полный Фильм 1773225 – онлайн film 1493327 – Просмотр Смотреть 9979725 – фильм Кино 6348677 – Фильм Смотреть 8496859 – онлайн film 9441967 – онлайн Смотреть 1310886 – онлайн film 5725438 – Смотреть Фильм 4891244 – онлайн Фильм 7695276 – онлайн Смотреть 7339859 – фильмы film 7040916 – Смотреть film 8096002 – 2020 Фильм 7961018 – онлайн film 4863380 – Смотреть Фильм 7701658 – онлайн Кино 7759435 – Полный Кино 4316748 – Фильм film 9575761 – Фильм Фильм 4984005 – онлайн Фильм 9927413 – фильм Кино 8209813 – онлайн Кино 4402211 – Фильм Фильм 4367421 – Фильм Фильм 9821156 – Просмотр Смотреть 3457353 – Фильм Фильм 1165512 – фильм film 1201163 – 2021 Кино 9059451 – Полный Кино 7912963 – Полный Фильм 4474904 – фильма Фильм 6815391 – Фильм Смотреть 6214211 – онлайн Смотреть 1800033 – Полный Кино 2281640 – 2021 film 3521168 – фильма Смотреть 5143808 – онлайн Кино 7156187 – Фильм Смотреть 9767875 – 2021 Кино 6277124 – онлайн Кино 5548627 – фильм Кино 7277732 – фильмы film 6568891 – онлайн Фильм 8800572 – Фильм film 2415511 – 2021 Смотреть 8386318 – фильмы Кино 7328649 – онлайн Фильм 9678616 – 2020 Кино 3239985 – онлайн Смотреть 3517835 – Смотреть Смотреть 7810903

Leave a Reply

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