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://www.ccboxcodes.com/forum/showthread.php?tid=789609 – 3550750cmh wfb https://www.ccboxcodes.com/forum/showthread.php?tid=789611 – 1760226pqc uck https://www.ccboxcodes.com/forum/showthread.php?tid=789607 – 8007266ava kum http://plbm.eu/showthread.php?tid=286232 – 3324160afe uxe http://cu25837.tmweb.ru/forums/topic/1286948/ – 3461624kia imx http://tangoxchange.org/viewtopic.php?f=2&t=245172 – 2065881adk oki http://theater-aquarium.ru/node/38?page=28#comment-15658 – 7744635wgt cfl http://eorhub.com/showthread.php?tid=8292&pid=123834#pid123834 – 6133041jjp rxr https://www.rvmac.net/forum/showthread.php?tid=279502 – 6959678fon gsd http://forum.searchforlight.de/viewtopic.php?f=4&t=66612 – 7223636lrf blr https://cmaxfanatics.com/forum/showthread.php?p=2653242&posted=1 – 3816037pzc ztf https://itells.ru/viewtopic.php?pid=135747#p135747 – 2252680qmb ngf http://www.sp3pje.ayz.pl/forum/showthread.php?tid=138277 – 3740009rwn njw https://m.yandex.com/collections/card/5c26d0a996e2c900734183d2/ – Просмотр film 8517073 https://m.yandex.com/collections/card/5c1f513dd41edd007e93bcec/ – 2021 Смотреть 7826109 https://m.yandex.com/collections/card/5c2640e03a86bf0069a85b7a/ – фильм Смотреть 2433856 https://m.yandex.com/collections/card/5c1f1d8358c417002e7fe1e7/ – Просмотр Смотреть 3179497 https://m.yandex.com/collections/card/5c26e8144913c700611b4039/ – 2021 Кино 3535165 https://m.yandex.com/collections/card/5c26c3d06b35ae004cb0cc1f/ – Просмотр film 2153152 https://m.yandex.com/collections/card/5c1ef2c88ba14a00798c670b/ – Полный film 3755119 https://m.yandex.com/collections/card/5c1f82193bf64400679c4161/ – фильмы film 3779990 https://m.yandex.com/collections/card/5c261f6a91f664007ee8df4d/ – Полный Кино 8873864 https://m.yandex.com/collections/card/5c2647edad7926002eb70a01/ – онлайн film 5305272 https://m.yandex.com/collections/card/5c270189a947cc00668e290d/ – онлайн film 2944662 https://m.yandex.com/collections/card/5c254e02145a380040aeba7d/ – Фильм Фильм 9113693 https://m.yandex.com/collections/card/5c25f503ad7926003cb764f7/ – Смотреть film 2165412 https://m.yandex.com/collections/card/5c26006e6b35ae0051ef9fe6/ – 2020 film 3545352 https://m.yandex.com/collections/card/5c264937d41edd0080c8390c/ – 2021 Смотреть 2639071 https://m.yandex.com/collections/card/5c27428cdba515006c147c50/ – 2021 film 6489499 https://m.yandex.com/collections/card/5c1ed35c8ba14a002e424528/ – Смотреть Кино 8689622 https://m.yandex.com/collections/card/5c257d8aad792600284efa4f/ – онлайн Фильм 2867180 https://m.yandex.com/collections/card/5c267802cd7496003c6b10c9/ – фильм Фильм 8400274 https://m.yandex.com/collections/card/5c256d4b5a29780064487de8/ – 2021 Кино 7113870 https://m.yandex.com/collections/card/5c1eba739d8712007f0f063c/ – онлайн film 3040541 https://m.yandex.com/collections/card/5c1f3096f070cf00286711c3/ – Полный Фильм 1773225 https://m.yandex.com/collections/card/5c257c93c86320002cb5607b/ – онлайн film 1493327 https://m.yandex.com/collections/card/5c1f55d52558e20073efdc6b/ – Просмотр Смотреть 9979725 https://m.yandex.com/collections/card/5c27267346db580037301903/ – фильм Кино 6348677 https://m.yandex.com/collections/card/5c271435f3bc88007caa0c3b/ – Фильм Смотреть 8496859 https://m.yandex.com/collections/card/5c25898ef070cf00467578ff/ – онлайн film 9441967 https://m.yandex.com/collections/card/5c1f4fc04913c700640fefca/ – онлайн Смотреть 1310886 https://m.yandex.com/collections/card/5c1e9c40cd7496006fc3a8a1/ – онлайн film 5725438 https://m.yandex.com/collections/card/5c26cfceeeb4ef0071d4ad9e/ – Смотреть Фильм 4891244 https://m.yandex.com/collections/card/5c25c4e751bbf20034b4dd04/ – онлайн Фильм 7695276 https://m.yandex.com/collections/card/5c268ac755854d005bafaafe/ – онлайн Смотреть 7339859 https://m.yandex.com/collections/card/5c259f136b35ae004ca066a9/ – фильмы film 7040916 https://m.yandex.com/collections/card/5c26f5b73a86bf00668a4470/ – Смотреть film 8096002 https://m.yandex.com/collections/card/5c26877355854d00557e2e19/ – 2020 Фильм 7961018 https://m.yandex.com/collections/card/5c1f3c9aad7926003b01a735/ – онлайн film 4863380 https://m.yandex.com/collections/card/5c268b479d8712006b0f660e/ – Смотреть Фильм 7701658 https://m.yandex.com/collections/card/5c25d3522558e20081c6a424/ – онлайн Кино 7759435 https://m.yandex.com/collections/card/5c2590c958c417002b0f2a7d/ – Полный Кино 4316748 https://m.yandex.com/collections/card/5c1eb37e3bf64400546c812a/ – Фильм film 9575761 https://m.yandex.com/collections/card/5c273adf58c417007b78b18b/ – Фильм Фильм 4984005 https://m.yandex.com/collections/card/5c276ecef0d00a0063a5a127/ – онлайн Фильм 9927413 https://m.yandex.com/collections/card/5c26745e21171800617b4795/ – фильм Кино 8209813 https://m.yandex.com/collections/card/5c25ca005a2978006d8088b9/ – онлайн Кино 4402211 https://m.yandex.com/collections/card/5c25d019f0d00a0051aabb25/ – Фильм Фильм 4367421 https://m.yandex.com/collections/card/5c1ebb2ac86320006ee2aa5e/ – Фильм Фильм 9821156 https://m.yandex.com/collections/card/5c1eaff1de9cba0036c817db/ – Просмотр Смотреть 3457353 https://m.yandex.com/collections/card/5c26197a103db600791cca6a/ – Фильм Фильм 1165512 https://m.yandex.com/collections/card/5c257555ea4b100031100fb6/ – фильм film 1201163 https://m.yandex.com/collections/card/5c1f3b992558e20072ff30a8/ – 2021 Кино 9059451 https://m.yandex.com/collections/card/5c2779a1c86320007eebef0e/ – Полный Кино 7912963 https://m.yandex.com/collections/card/5c2693713a86bf00640eb853/ – Полный Фильм 4474904 https://m.yandex.com/collections/card/5c255322dba515006d35337d/ – фильма Фильм 6815391 https://m.yandex.com/collections/card/5c26ceaaf070cf004101191d/ – Фильм Смотреть 6214211 https://m.yandex.com/collections/card/5c1f6ad158c417003af662ba/ – онлайн Смотреть 1800033 https://m.yandex.com/collections/card/5c25ed0991f664007bb2075b/ – Полный Кино 2281640 https://m.yandex.com/collections/card/5c2640e1ad79260032d8a906/ – 2021 film 3521168 https://m.yandex.com/collections/card/5c259f5146db5800344a5bc8/ – фильма Смотреть 5143808 https://m.yandex.com/collections/card/5c2576e0cd7496008170bdfc/ – онлайн Кино 7156187 https://m.yandex.com/collections/card/5c26164feeb4ef007a404258/ – Фильм Смотреть 9767875 https://m.yandex.com/collections/card/5c2760545a2978006315fe4f/ – 2021 Кино 6277124 https://m.yandex.com/collections/card/5c26ca1d58c417006a273934/ – онлайн Кино 5548627 https://m.yandex.com/collections/card/5c25edd8a897ed0073c6a6d6/ – фильм Кино 7277732 https://m.yandex.com/collections/card/5c2622b1f3bc880071ff1493/ – фильмы film 6568891 https://m.yandex.com/collections/card/5c1ead19a897ed0065c1fbf2/ – онлайн Фильм 8800572 https://m.yandex.com/collections/card/5c260f7dde9cba005ec1fd58/ – Фильм film 2415511 https://m.yandex.com/collections/card/5c25e608ad7926003380e336/ – 2021 Смотреть 8386318 https://m.yandex.com/collections/card/5c1ed2c73a86bf0039fce7ef/ – фильмы Кино 7328649 https://m.yandex.com/collections/card/5c1e95becd749600703bbb2f/ – онлайн Фильм 9678616 https://m.yandex.com/collections/card/5c1e9924c86320006766327e/ – 2020 Кино 3239985 https://m.yandex.com/collections/card/5c26a406f3bc88006f5872b8/ – онлайн Смотреть 3517835 https://m.yandex.com/collections/card/5c1f0348d87d1100388eb92c/ – Смотреть Смотреть 7810903

Leave a Reply

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