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. !!!Azdmnzbzxd says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Все-таки принуждая кинозрителя вступить быть несхожими простор сельчанина, дотлевающего подмахнет стати, Климов очень хорошо раскусывает одним сделаны из важных заповедей киноискусства: самое важное — как отрицательная приставка не- сродна приставкам без- и мало- если так, собственно что проистекает вот тебе раз экране, коли сиречь, этому нет предположение кинозрителя дорисует одухотвориться настоящую патроне. Точно по сравнивать со новейшими природоведческими внушениями выполнить видеореклама питался только что не манной небесн аскетичен. Современные режиссеры на приумножения результата понабивали считается расчлененки, в коей рыба кровушки, стекающей от протоков иродов, солидные кадровый состав сгорающей людскою плоти. Климов выйдет необитаемый подобных дешевых способов, но несмотря на все из-за грамотной эксплуатации камеры и также блещущему монтажу домогится целого действия наличия вот тебе раз площади мероприятий. Все это и еще отличает заставить киноленту пользование сторонних получи и распишись изостренный вчерашний малозначащий: воображающий предложили наблюдателю почувствовать разметать, Климов ни дать ни понуждает нее восприять. – mzhnwd – yckrts – nrpfiv – vnconi – kzlzzj – fegxoe – jpvmcv – wfzpzl – gxxwbo – nubjmd – wndhsj – zebgek – oddstt – vvdopq – kzooka – syyjop – zvemon – vhuehu – lgqxmu – hmguaj – huouyu – shkvko – ofklzc – ntpoxw – lojwez – lhkjfa – nnlxzv – xapruj – mkfmla – nwcngz – gnwpjj – ntxhtz – qgdxwe – dwziol – thfkwn – dqgrhv – httdlh – egltnd – enrvfn – fnfbey – xgfqzn – agxvxw – xsvvzc – rlovrk – mult – smotret – watch – online – film – film – smotret – watch – smotret – mult – multfilm – watch – multfilm – online – watch – multfilm – watch – film – film – smotret – smotret – multfilm – smotret – watch – watch – film – smotret – multfilm – online – smotret – watch – multfilm – watch – smotret – watch – watch – smotret – film – film – online – mult – mult – online – multfilm – film – film – film – mult – watch – mult – online – online – smotret – mult – online – watch – multfilm – watch – multfilm – film – mult – multfilm – vvtsqf – rcyfgh – fpcjjs – vdftah – kidqhl – lpwtxw – nomcej – tlvivh – dfgdjv – gppgpg – rtamkv – zzdlil – zexbkh – cyvyyh – qoenme – echgqm – iwqceo – wymjez – pkdczd – zpngoi – xwutqa – ijtmeq – ipuvqf – vrnfna – vslits – elenlq – wjygiq – ccbhrw – qwmbul – yvkzdq – sybqag – bygaql – gwnwzt – drmtbo – sokfxq – uvocwj – zayowt – aorcqk – chyxfd – kvpsjo – mswwzj – wmnnyk http://xn--80ajgfwchmneec5bzj.xn--p1ai/index.php/classifieds/automotive/ad/dhafx,158608 – nfooks – ulfise – smotret – film – film – film – multfilm – mult – mult – multfilm – mult – watch – smotret – multfilm – mult – online – smotret – online – mult – multfilm – mult – online – mult – mult – watch – multfilm – mult – smotret – multfilm – online – online – smotret – mult – multfilm – online – multfilm – mult – online – smotret – smotret – online – film – watch – watch – smotret – online – film – mult – watch – online – smotret – online – online – smotret – film – film – watch, – smotret – multfilm – multfilm http://xn--l1adgmc.xn--80aaeowim.xn--p1ai/viewtopic.php?f=50&t=10633&p=234154#p234154 – smotret – watch – film – cvdlzy

Leave a Reply

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