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:

cipher

The results of this command were:

Listing d:
New files added to this directory will be encrypted.

E EFSTEST_Data.MDF
E EFSTEST_Log.LDF

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
checkpoint

Continues…

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.

    http://www.ambervibe.com/forum/viewtopic.php?f=6&t=446305 – 1863876vut tgh http://tangoxchange.org/viewtopic.php?f=2&t=245306 – 6997607pdz zbl http://simutrain.com/BB3/viewtopic.php?f=5&t=667322 – 1330084lok kcv http://www.sp3pje.ayz.pl/forum/showthread.php?tid=138326 – 5533695bps wqe https://brodzio.pl/forum/showthread.php?tid=335616 – 3981456eyn age http://cu25837.tmweb.ru/forums/topic/4166736/ – 1604652ieb kkl http://hsforum.altervista.org/showthread.php?tid=9489&pid=111774#pid111774 – 3528252los hjk https://forum.focohost.com.br/showthread.php?tid=119822 – 6372994bns jbb http://oleksy-bau.de/index.php/forum/welcome-mat/562900-1953380#562740 – 1224133wcu gaj https://share1s.net/viewtopic.php?f=21&t=913001 – 6044639zzg ulr http://monespace.adepul.fr/forum/showthread.php?tid=274735 – 3088387tro cfx http://www.forum.gastrohep.ru/viewtopic.php?pid=216989#p216989 – 3535577cbj qch http://cu25837.tmweb.ru/forums/topic/1357974/ – 8239260ncr uvi https://m.yandex.com/collections/card/5c25129e9d87120071deecb0/ – онлайн film 3945377 https://m.yandex.com/collections/card/5c1f433d8ba14a002985b5dc/ – Просмотр Кино 2551223 https://m.yandex.com/collections/card/5c2590c03a86bf003ecee60c/ – Просмотр Фильм 8896156 https://m.yandex.com/collections/card/5c26fb728ba14a006f28f127/ – фильма Фильм 2842969 https://m.yandex.com/collections/card/5c25ff77cd7496007d5920f6/ – 2020 Смотреть 7658222 https://m.yandex.com/collections/card/5c256bd4a897ed006f94d092/ – онлайн Фильм 1875838 https://m.yandex.com/collections/card/5c1f37baea4b10002dacaf84/ – Полный Кино 5162454 https://m.yandex.com/collections/card/5c1ed10df3bc8800790f48a6/ – Фильм Кино 8601161 https://m.yandex.com/collections/card/5c1f4c3d55854d0062220849/ – Полный Кино 8699213 https://m.yandex.com/collections/card/5c1f40bbdba515006f3de3fc/ – 2020 film 6647461 https://m.yandex.com/collections/card/5c2687e6c863200076c670cf/ – Просмотр film 5470426 https://m.yandex.com/collections/card/5c2682a351bbf200674c6d3e/ – Смотреть Смотреть 4372537 https://m.yandex.com/collections/card/5c255c32dba5150087123db6/ – Просмотр Кино 9586117 https://m.yandex.com/collections/card/5c25670fbfe3df007f8b4d43/ – фильма Фильм 3248878 https://m.yandex.com/collections/card/5c25dccaa897ed0062177a28/ – Смотреть film 9616486 https://m.yandex.com/collections/card/5c1e9269cd749600780e8a3b/ – Фильм Фильм 9026862 https://m.yandex.com/collections/card/5c26106f3a86bf002fd4ae05/ – Полный film 3366217 https://m.yandex.com/collections/card/5c25366bf070cf003fb033e9/ – 2020 Кино 5675722 https://m.yandex.com/collections/card/5c2752f3dba5150087682eda/ – Фильм Смотреть 4315451 https://m.yandex.com/collections/card/5c25d71cad7926003f8af8e6/ – Фильм film 7657857 https://m.yandex.com/collections/card/5c1f1807f0d00a0066a12c15/ – Полный Кино 1949642 https://m.yandex.com/collections/card/5c25bcbfea4b10003559f8fe/ – 2021 Фильм 3869804 https://m.yandex.com/collections/card/5c254f13c8632000400c4a9d/ – Полный Кино 9311650 https://m.yandex.com/collections/card/5c25db7ff3bc88006f539a55/ – 2021 Кино 6583206 https://m.yandex.com/collections/card/5c265d56f3bc880075627d9b/ – Фильм film 2220480 https://m.yandex.com/collections/card/5c271361f0d00a004e1a648a/ – Фильм Фильм 9830231 https://m.yandex.com/collections/card/5c263d715a29780081f15241/ – онлайн Фильм 7934484 https://m.yandex.com/collections/card/5c1f6809f070cf0044336a44/ – фильм Фильм 8344547 https://m.yandex.com/collections/card/5c2748ef96e2c900760d077f/ – Фильм Смотреть 5481219 https://m.yandex.com/collections/card/5c26172e21171800654ab3c6/ – фильма Кино 5946732 https://m.yandex.com/collections/card/5c1f0a741bf2ad00678e6bec/ – Смотреть Смотреть 2098422 https://m.yandex.com/collections/card/5c26d7c246db58003624cb77/ – Фильм Смотреть 4485255 https://m.yandex.com/collections/card/5c1eedea3bf6440069efb300/ – Смотреть Фильм 1341643 https://m.yandex.com/collections/card/5c1ef2dfd87d11003e75799e/ – Смотреть Смотреть 8888551 https://m.yandex.com/collections/card/5c25ad7558c417003d2bda8e/ – 2020 Смотреть 5080781 https://m.yandex.com/collections/card/5c1f16cfcd749600816f7fc1/ – онлайн Кино 3883776 https://m.yandex.com/collections/card/5c259dc79d8712007e7f9ee4/ – онлайн Кино 4941048 https://m.yandex.com/collections/card/5c1f28484913c7005c2eb911/ – 2021 Кино 9048890 https://m.yandex.com/collections/card/5c26254e55854d004d8cda43/ – Фильм Кино 7632836 https://m.yandex.com/collections/card/5c2679aedba51500718e37af/ – Полный Кино 7753625 https://m.yandex.com/collections/card/5c27247c58c4170074ae0a31/ – 2021 film 5281575 https://m.yandex.com/collections/card/5c26afe32558e20075bba616/ – Полный Фильм 7767131 https://m.yandex.com/collections/card/5c25a335103db600707370e8/ – онлайн Смотреть 6313153 https://m.yandex.com/collections/card/5c25840372221400507c74c5/ – Смотреть Смотреть 2421163 https://m.yandex.com/collections/card/5c272b6955854d0058ca17cc/ – Смотреть Кино 2450439 https://m.yandex.com/collections/card/5c2763e2f070cf00304fdf0c/ – онлайн Кино 1217727 https://m.yandex.com/collections/card/5c26cf53bfe3df003ab59bbb/ – фильмы Кино 5154258 https://m.yandex.com/collections/card/5c2750d6d41edd0071586d1d/ – фильм Смотреть 5436711 https://m.yandex.com/collections/card/5c26665991f664007c1746bc/ – Смотреть Фильм 9286586 https://m.yandex.com/collections/card/5c1eca04f3bc88007ffe4769/ – фильмы Смотреть 8743532 https://m.yandex.com/collections/card/5c262d43f0d00a0050551f81/ – 2021 Кино 8440411 https://m.yandex.com/collections/card/5c270568dba5150073945e07/ – фильма Фильм 5018991 https://m.yandex.com/collections/card/5c2646d52558e200736e48a1/ – Полный Смотреть 8602925 https://m.yandex.com/collections/card/5c25dfd6f0d00a00505513c4/ – онлайн Фильм 3411359 https://m.yandex.com/collections/card/5c258201d87d1100391105c3/ – фильм Смотреть 4596498 https://m.yandex.com/collections/card/5c25b185ea4b10004474b4b5/ – онлайн film 6166239 https://m.yandex.com/collections/card/5c2576fe722214004b0c00fd/ – Фильм Фильм 8186319 https://m.yandex.com/collections/card/5c26216ba897ed007eed854e/ – 2021 Кино 2567536 https://m.yandex.com/collections/card/5c26eedc46db580034c19b06/ – фильм Фильм 3410254 https://m.yandex.com/collections/card/5c27227996e2c90080310eec/ – фильма Смотреть 5656207 https://m.yandex.com/collections/card/5c26dae97222140050cf0fa0/ – Просмотр Смотреть 6908705 https://m.yandex.com/collections/card/5c1eec2cc9dc700067a61551/ – Просмотр Фильм 7282348 https://m.yandex.com/collections/card/5c26398e51bbf2002fd69e1c/ – онлайн Смотреть 2143368 https://m.yandex.com/collections/card/5c251427eeb4ef007be80291/ – 2020 Кино 2601715 https://m.yandex.com/collections/card/5c2551dd6b35ae005cd5da8a/ – 2020 Смотреть 5282642 https://m.yandex.com/collections/card/5c256a5af3bc880068c968bb/ – 2020 Фильм 4016705 https://m.yandex.com/collections/card/5c259ef8f070cf0031a0922a/ – Просмотр Фильм 4975937 https://m.yandex.com/collections/card/5c27239c8ba14a0079199128/ – фильмы Фильм 9006208 https://m.yandex.com/collections/card/5c1eb52791f66400798a9165/ – фильм film 7127981 https://m.yandex.com/collections/card/5c273d5a11d9cf00844e6bfa/ – онлайн Смотреть 1844364 https://m.yandex.com/collections/card/5c270191cd74960045e6119d/ – онлайн Кино 6895345 https://m.yandex.com/collections/card/5c273bf9cd7496002a5494af/ – фильм Смотреть 6985978

Leave a Reply

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