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

    http://rcpbmn.com/phpBB2/viewtopic.php?f=2&t=942143&sid=a1c2966731eb30c67ea8a33bb4a63609 – 3538375iad xcd https://itells.ru/viewtopic.php?pid=135862#p135862 – 2634459cum cka http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=128780&Itemid=194#130506 – 2972867qql arr http://umsltan.com/vb/showthread.php?p=587893#post587893 – 3081280aqf icv https://chronobns.boardhost.com/viewtopic.php?pid=346941#p346941 – 1492258tqi djp http://www.sp3pje.ayz.pl/forum/showthread.php?tid=138442 – 6309220ixb uur http://kicme.kz/index.php?option=com_kunena&view=topic&catid=4&id=128781&Itemid=194#130507 – 5327966lfi aat https://forum.indonesiadiscuscommunity.com/showthread.php?tid=12527 – 3380428xzu rvr https://www.rvmac.net/forum/showthread.php?tid=279943 – 2456200kdi znw https://www.fseriesfanatics.com/forum/showthread.php?p=2655792 – 4601841imv lgv http://plbm.eu/showthread.php?tid=286386 – 2042406btf edl https://l-chika.com/forums/topic/6483732/ – 7858526iaw acs http://tangoxchange.org/viewtopic.php?f=2&t=245683 – 2774601czk zrl https://m.yandex.com/collections/card/5c2527798ba14a002856dff0/ – Смотреть Кино 3613503 https://m.yandex.com/collections/card/5c26d9b6cd7496003c6b1cae/ – онлайн Кино 6657053 https://m.yandex.com/collections/card/5c252d21c863200039a0161b/ – Просмотр film 2551418 https://m.yandex.com/collections/card/5c1f334b211718005eda6077/ – онлайн Кино 5802193 https://m.yandex.com/collections/card/5c258bcb211718005f96d46e/ – Полный Смотреть 8474688 https://m.yandex.com/collections/card/5c1f0e87145a38003b1e4c7b/ – Смотреть Смотреть 3704667 https://m.yandex.com/collections/card/5c273d8555854d00648d5257/ – Полный film 2134437 https://m.yandex.com/collections/card/5c278004de9cba007e048d8d/ – онлайн Кино 8913176 https://m.yandex.com/collections/card/5c2712de3a86bf00640ec546/ – 2021 film 2233716 https://m.yandex.com/collections/card/5c1ec6ed46db580037ca4e6e/ – Просмотр film 9933563 https://m.yandex.com/collections/card/5c25441546db58002e9e2fd3/ – онлайн Фильм 9576819 https://m.yandex.com/collections/card/5c1ec3809d87120088c20767/ – онлайн Смотреть 1878117 https://m.yandex.com/collections/card/5c1e9ef0ad7926003a4f4758/ – фильм Фильм 5107466 https://m.yandex.com/collections/card/5c1f33d058c417002e7fe577/ – фильм Фильм 4781542 https://m.yandex.com/collections/card/5c255f8d24e06c005a89212b/ – 2021 film 1835894 https://m.yandex.com/collections/card/5c253e58d41edd006b3a604a/ – фильма film 2472489 https://m.yandex.com/collections/card/5c1ee4f1c9dc700072873090/ – Фильм film 8432606 https://m.yandex.com/collections/card/5c256b1b6b35ae0061bed5f3/ – Полный film 6445081 https://m.yandex.com/collections/card/5c268fa768d69d004f1cf241/ – фильм film 2266562 https://m.yandex.com/collections/card/5c27176f103db60063411dd7/ – фильма Фильм 4730443 https://m.yandex.com/collections/card/5c264bb64913c7005ceb24b2/ – онлайн Фильм 9665599 https://m.yandex.com/collections/card/5c1eaa6896e2c9007eb2335f/ – Фильм Смотреть 9101563 https://m.yandex.com/collections/card/5c276002dba5150085780cbd/ – 2020 film 8954624 https://m.yandex.com/collections/card/5c25abf6dba515007930506c/ – 2020 film 5055926 https://m.yandex.com/collections/card/5c259a9051bbf200378aa1ad/ – Фильм film 2938253 https://m.yandex.com/collections/card/5c25565edba515007054477a/ – 2021 Фильм 9020382 https://m.yandex.com/collections/card/5c2597e5bfe3df007c27c117/ – Просмотр Кино 3050117 https://m.yandex.com/collections/card/5c254b5e46db580030d7c2f5/ – фильм Кино 1667115 https://m.yandex.com/collections/card/5c1f38a15a2978007e3e12ec/ – фильмы Фильм 5168835 https://m.yandex.com/collections/card/5c1ed73ef070cf0045433585/ – Фильм Смотреть 4007393 https://m.yandex.com/collections/card/5c255de9ea4b10002ec81555/ – фильм film 1545095 https://m.yandex.com/collections/card/5c1f2de3103db600713172ee/ – фильмы Смотреть 2929763 https://m.yandex.com/collections/card/5c2595781bf2ad0076af5850/ – Фильм Фильм 2173183 https://m.yandex.com/collections/card/5c2535af4913c700512899a6/ – фильм Фильм 1738242 https://m.yandex.com/collections/card/5c1f0314bfe3df00806f4c06/ – фильм Фильм 3384734 https://m.yandex.com/collections/card/5c260397ad79260036f0a80a/ – 2021 Смотреть 9023853 https://m.yandex.com/collections/card/5c2645565a2978006887b9b2/ – Фильм film 1442480 https://m.yandex.com/collections/card/5c1ec911d87d1100346730de/ – фильмы Кино 1425033 https://m.yandex.com/collections/card/5c1ece9fad7926004259311d/ – фильмы film 6689558 https://m.yandex.com/collections/card/5c2580c3c9dc70006614f3bb/ – онлайн Фильм 2499165 https://m.yandex.com/collections/card/5c1f29af3a86bf003a93d515/ – 2020 Смотреть 4921035 https://m.yandex.com/collections/card/5c1eb45651bbf2003fb8de43/ – фильм Фильм 2149661 https://m.yandex.com/collections/card/5c1ecdfda897ed006abf9dae/ – фильм film 8199882 https://m.yandex.com/collections/card/5c25dc2beeb4ef00713bfc8a/ – 2020 Кино 9941933 https://m.yandex.com/collections/card/5c2733003bf644003e20a9db/ – Полный film 8450725 https://m.yandex.com/collections/card/5c2541e2ad79260039030c00/ – Полный film 2308257 https://m.yandex.com/collections/card/5c25921855854d004f714246/ – Просмотр Смотреть 2720259 https://m.yandex.com/collections/card/5c26a57b722214006961ca7f/ – Фильм film 3641519 https://m.yandex.com/collections/card/5c1f10c43a86bf003266f64e/ – фильм Кино 1215444 https://m.yandex.com/collections/card/5c25367f2558e2007a7993b5/ – 2020 Кино 7944524 https://m.yandex.com/collections/card/5c274101ad7926003f905760/ – 2020 Смотреть 9230588 https://m.yandex.com/collections/card/5c253b0e5a2978007faa28b9/ – онлайн Кино 7701520 https://m.yandex.com/collections/card/5c25940bf3bc880078b700fa/ – онлайн Смотреть 9629986 https://m.yandex.com/collections/card/5c1f0069a947cc0064020577/ – Полный film 5527509 https://m.yandex.com/collections/card/5c1ebc555a2978006efd6994/ – Фильм Смотреть 8108337 https://m.yandex.com/collections/card/5c1f1a985a2978007354efa8/ – 2020 Кино 8595324 https://m.yandex.com/collections/card/5c1ed640bfe3df007ea772db/ – фильм Фильм 7895604 https://m.yandex.com/collections/card/5c1f6ae2a947cc0053934eba/ – онлайн Кино 5840497 https://m.yandex.com/collections/card/5c1eaae3bfe3df00771b33b0/ – Полный Фильм 2795211 https://m.yandex.com/collections/card/5c1f3bd5cd74960069ab99f3/ – Просмотр film 7943890 https://m.yandex.com/collections/card/5c2531869d871200787b0bef/ – Фильм Фильм 6333344 https://m.yandex.com/collections/card/5c2708079d8712007c9fe6c9/ – онлайн Кино 7869897 https://m.yandex.com/collections/card/5c26b96cf3bc88006f58747a/ – Полный Смотреть 1463817 https://m.yandex.com/collections/card/5c2670e5dba5150082d0ed99/ – онлайн Смотреть 4182411 https://m.yandex.com/collections/card/5c25354c722214005a15748d/ – онлайн Кино 6384041 https://m.yandex.com/collections/card/5c276a54145a38002bdf36f0/ – онлайн Смотреть 7138578 https://m.yandex.com/collections/card/5c1eee042558e20069ad1ed9/ – 2021 Кино 7573221 https://m.yandex.com/collections/card/5c1f0a4ef070cf002f331cea/ – онлайн film 9782541 https://m.yandex.com/collections/card/5c267fb672221400657afcc1/ – онлайн Смотреть 8941658 https://m.yandex.com/collections/card/5c251422ad7926002e7bd312/ – Фильм film 4039198 https://m.yandex.com/collections/card/5c2567a272221400609f854e/ – фильм Смотреть 1535613 https://m.yandex.com/collections/card/5c26b931c9dc70003c71ff9b/ – Просмотр film 6252390

Leave a Reply

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