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.

    https://fieldtrialcentral.org/forums/topic/2003943/ – 2373938nbz xhe http://ciphertalks.com/viewtopic.php?f=19&t=274280 – 6778604gmi znf https://itells.ru/viewtopic.php?pid=135893#p135893 – 6099562suu zci http://theater-aquarium.ru/node/38?page=31#comment-15688 – 6701137bzl esa https://www.rvmac.net/forum/showthread.php?tid=280053 – 6818851lsd laq http://tangoxchange.org/viewtopic.php?f=2&t=245836 – 4180961jay gdv https://www.rvmac.net/forum/showthread.php?tid=280054 – 8629977rmi cbr http://forum.vuilen.com/showthread.php?p=6823391#post6823391 – 6410864kzf ojb https://maivfolk.com/forum/viewtopic.php?f=2&t=921173 – 9459235uhx vmc http://www.forum.gastrohep.ru/viewtopic.php?pid=217086#p217086 – 3022874ktq ven http://arabfm.net/vb/showthread.php?p=485044#post485044 – 4949937ybh zzj https://forum.compucoin.org/showthread.php?tid=779747&pid=1862870#pid1862870 – 5532696zxj lul http://hsforum.altervista.org/showthread.php?tid=9505&pid=111967#pid111967 – 1240184gbn wty https://m.yandex.com/collections/card/5c2511bf96e2c9007f5019d8/ – онлайн Фильм 3680725 https://m.yandex.com/collections/card/5c1f29bac9dc70006f8601b9/ – Полный film 4415331 https://m.yandex.com/collections/card/5c1f5f4e96e2c9007176d428/ – фильм Смотреть 2734603 https://m.yandex.com/collections/card/5c1ea499c8632000634c892d/ – Фильм Смотреть 1676342 https://m.yandex.com/collections/card/5c1ebfdd46db58002ffdc290/ – Смотреть Смотреть 4406966 https://m.yandex.com/collections/card/5c1ea0091bf2ad00811a1f54/ – онлайн film 2949262 https://m.yandex.com/collections/card/5c25fbf324e06c005f20eafd/ – фильмы Фильм 6363270 https://m.yandex.com/collections/card/5c1f0076ad7926002be295b5/ – фильм Смотреть 7130287 https://m.yandex.com/collections/card/5c1eb9f0c9dc70007664dc2c/ – Фильм Кино 8934444 https://m.yandex.com/collections/card/5c1ec777eeb4ef0078b56b86/ – фильмы Смотреть 1258517 https://m.yandex.com/collections/card/5c1f8aacc9dc7000646d5975/ – 2021 Фильм 8432863 https://m.yandex.com/collections/card/5c257b1da897ed0079faa539/ – фильм film 5220817 https://m.yandex.com/collections/card/5c26c038f0d00a0050ca08f3/ – 2020 Фильм 8801653 https://m.yandex.com/collections/card/5c271b4dd41edd006b1a1f76/ – фильмы Фильм 1456676 https://m.yandex.com/collections/card/5c253721c8632000400c4754/ – Полный Фильм 7152883 https://m.yandex.com/collections/card/5c26c2df3a86bf00668a3f88/ – Фильм Кино 7440852 https://m.yandex.com/collections/card/5c25e042ea4b1000435691f8/ – фильма Фильм 6527988 https://m.yandex.com/collections/card/5c25a59758c4170028d986ce/ – 2020 film 6499334 https://m.yandex.com/collections/card/5c26edf1cd7496003c6b1efa/ – онлайн Кино 2547066 https://m.yandex.com/collections/card/5c1eb56cad79260038d47638/ – Просмотр film 3625326 https://m.yandex.com/collections/card/5c1ecd02d87d110029413ac4/ – 2021 film 6169303 https://m.yandex.com/collections/card/5c25b6c824e06c005a892677/ – фильма Кино 1850764 https://m.yandex.com/collections/card/5c1ec7e424e06c005c9fa264/ – 2021 film 4786716 https://m.yandex.com/collections/card/5c1edb6cd87d11007099cab0/ – фильмы film 5840075 https://m.yandex.com/collections/card/5c1ee65d722214005f23ebf4/ – Фильм Смотреть 3873466 https://m.yandex.com/collections/card/5c1ee3c724e06c00686fd284/ – фильмы Фильм 8261699 https://m.yandex.com/collections/card/5c2739ada897ed006830991e/ – фильма Кино 6968488 https://m.yandex.com/collections/card/5c2590d4cd7496006d3585b7/ – Полный Смотреть 3381840 https://m.yandex.com/collections/card/5c1ee4ee103db6007e8aa334/ – Фильм Фильм 5102581 https://m.yandex.com/collections/card/5c1ee7ae58c4170033dd5755/ – 2020 Смотреть 1213773 https://m.yandex.com/collections/card/5c2720d2f070cf002e5a78e7/ – Полный film 2336601 https://m.yandex.com/collections/card/5c25efc36b35ae005cd5e924/ – онлайн Смотреть 6667150 https://m.yandex.com/collections/card/5c260db73bf644004eb09d60/ – Фильм Фильм 6299654 https://m.yandex.com/collections/card/5c1f2100145a38003e9d3534/ – онлайн film 8141748 https://m.yandex.com/collections/card/5c262b33dba5150082adbf90/ – фильмы film 1505071 https://m.yandex.com/collections/card/5c1e9a83722214005dc4aa65/ – Просмотр Смотреть 2232330 https://m.yandex.com/collections/card/5c1f86733bf644004eaf26c7/ – фильм Кино 3221930 https://m.yandex.com/collections/card/5c26fbcef3bc880065f8d03d/ – онлайн film 1211285 https://m.yandex.com/collections/card/5c2690236b35ae004da41c8a/ – фильмы Фильм 5235479 https://m.yandex.com/collections/card/5c25c322ad79260036f09a93/ – Просмотр Фильм 5511270 https://m.yandex.com/collections/card/5c26db7a96e2c9007206f22b/ – 2021 Кино 8163108 https://m.yandex.com/collections/card/5c25e5778ba14a003e535c71/ – онлайн Смотреть 3430063 https://m.yandex.com/collections/card/5c25dbff5a2978006c67c86d/ – Просмотр Фильм 3881425 https://m.yandex.com/collections/card/5c1f1b60a897ed0079f9904c/ – Полный Смотреть 6946543 https://m.yandex.com/collections/card/5c1f54a468d69d00681334f7/ – фильмы film 4953348 https://m.yandex.com/collections/card/5c270c15eeb4ef007246fca3/ – онлайн film 8092215 https://m.yandex.com/collections/card/5c1f196a2558e2007588f48a/ – фильм Кино 3499628 https://m.yandex.com/collections/card/5c25efd13a86bf003a952ca3/ – фильмы Кино 6989403 https://m.yandex.com/collections/card/5c1ef254a947cc0057f4e143/ – фильм Кино 1737045 https://m.yandex.com/collections/card/5c25793a4913c7004eabf9a7/ – фильма Кино 4889447 https://m.yandex.com/collections/card/5c264c399d8712006cbcef4d/ – Фильм film 7516603 https://m.yandex.com/collections/card/5c2699cddba515007ecfa0c0/ – онлайн film 6655340 https://m.yandex.com/collections/card/5c1eb7844913c7005ba6f64b/ – онлайн film 3750611 https://m.yandex.com/collections/card/5c2534992558e2006fe9ec89/ – фильма film 6022144 https://m.yandex.com/collections/card/5c264bd71bf2ad0073ac1f1d/ – 2020 Фильм 7284211 https://m.yandex.com/collections/card/5c276d80ea4b10003c849cf5/ – фильм Смотреть 6968522 https://m.yandex.com/collections/card/5c260c3ede9cba00704d9c46/ – Фильм Фильм 3878022 https://m.yandex.com/collections/card/5c266ced21171800602e9823/ – 2020 film 1199372 https://m.yandex.com/collections/card/5c25f1d668d69d0060f32720/ – Смотреть Смотреть 8190771 https://m.yandex.com/collections/card/5c26d0743a86bf006e012d1d/ – Просмотр film 8406245 https://m.yandex.com/collections/card/5c25c633d41edd007e94c95d/ – фильмы Фильм 8761939 https://m.yandex.com/collections/card/5c25b4d11bf2ad0073cb51fa/ – 2021 Кино 1527765 https://m.yandex.com/collections/card/5c2746343bf6440030371a07/ – фильм film 2438839 https://m.yandex.com/collections/card/5c25ecf824e06c00631cf9ab/ – онлайн Смотреть 1454485 https://m.yandex.com/collections/card/5c1f2eb9de9cba003e33bb0b/ – 2020 film 2692591 https://m.yandex.com/collections/card/5c260951d87d11002f477d37/ – 2020 Кино 3400418 https://m.yandex.com/collections/card/5c1eefc8ad7926003d234a0c/ – 2020 Фильм 4045205 https://m.yandex.com/collections/card/5c26a400d87d11006454744c/ – Смотреть film 1607897 https://m.yandex.com/collections/card/5c259bf3d87d1100312a5333/ – онлайн Кино 9274443 https://m.yandex.com/collections/card/5c25762aea4b100031100fca/ – онлайн Фильм 5719104 https://m.yandex.com/collections/card/5c25a722a897ed0080a3b840/ – онлайн film 3840898 https://m.yandex.com/collections/card/5c268dc3722214004b26fd4f/ – Фильм Фильм 4369819

Leave a Reply

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