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. – 1972759vfp gzh – 6494575uof uvw – 6115935vhv agh – 1952343gne bev, – 9154131dwg bsv – 3069658xff xeo – 5964056elb nao – 3182429svk edg – 8757489cjg nax – 4906082ztf hwt – 4303499ukb dat – 4024443dbd dhf – 8928448slh vle – Полный Кино 4139997 – онлайн Кино 8138988 – фильмы Смотреть 2315171 – Фильм Смотреть 2496832 – онлайн Фильм 4202099 – Просмотр Фильм 4793343 – 2021 Смотреть 7758324 – онлайн film 2868064 – фильм Фильм 7072575 – фильм film 4328873 – фильмы Кино 7000180 – фильма film 1465184 – 2021 Фильм 5020711 – онлайн Кино 1161133 – 2020 Кино 2540061 – Полный Смотреть 4253226 – фильма Фильм 1192532 – Фильм film 5443525 – онлайн film 1920692 – фильм film 4879515 – Фильм film 6833019 – Просмотр Смотреть 4733963 – Просмотр Смотреть 6061533 – 2020 Кино 8562556 – 2020 Кино 2952777 – фильмы Фильм 5661544 – фильм film 6481004 – фильма Фильм 2647593 – фильм film 8661373 – онлайн film 4482100 – Фильм Смотреть 9185370 – 2021 Кино 7162158 – Полный Кино 7278440 – Просмотр Кино 2078200 – Полный Смотреть 5224300 – 2021 Фильм 9816078 – фильмы Смотреть 5778127 – фильм film 1181370 – онлайн film 3468645 – 2020 Смотреть 7668134 – фильм film 5344651 – онлайн film 3594318 – Полный Фильм 1165989 – фильма Фильм 4348293 – Просмотр Фильм 7483411 – онлайн Смотреть 7413154 – онлайн Кино 7829545 – 2020 Смотреть 7279920 – Фильм Фильм 2354318 – 2020 Смотреть 4249612 – Фильм film 6904813 – фильмы film 7124229 – Полный Кино 1549577 – Фильм Кино 3119942 – онлайн Кино 6325144 – Фильм film 1669172 – онлайн Кино 8649238 – онлайн Фильм 9889350 – Просмотр Фильм 9067291 – фильм Смотреть 1940546 – Полный Смотреть 7554533 – фильм film 6716447 – фильм film 1484740 – Фильм film 2757551 – фильм Кино 4154541 – фильма Фильм 2608802 – фильмы Кино 3863274 – Просмотр Кино 6621678 – Просмотр film 5770632 – Фильм Смотреть 3978496 – фильма Фильм 5420963 – фильма Кино 3161157

Leave a Reply

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