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://forum.compucoin.org/showthread.php?tid=779751&pid=1862694#pid1862694 – 5639409ylh yfc http://otradny24.ru/forum/messages/forum4/topic20885/message28844/?sessid=015b2e2fb3a7c8578f3b533099958a8a&TOPIC_SUBSCRIBE=Y&FORUM_SUBSCRIBE=Y&result=new – 1605983utc vpc http://otopartid.com/blog/2016/03/08/free-sticker?page=2075#comment-103754 – 8567087kka veu http://ipoteka-dlya-voennyh.ru/forums/topic/6004259 – 1569226oft xkk http://www.carryingconcealedusa.com/site/topic/757840-4150579/ – 7755804wbv iuq http://forum.2serveothers.com/showthread.php?tid=386138&pid=752460#pid752460 – 8988646add qlm https://e85vehicles.com/e85/index.php?/topic/9965-3587978/ – 9469530xcz obg http://forum.nyugat.hu/index.php?showtopic=1313&#entry0 – 1695050jgf ycs https://cryptographybuzz.com/portsmash-hyper-threading-decryption-keys/?unapproved=408387&moderation-hash=ed0de5fdd013e4374ba3b1785efcb9b2#comment-408387 – 8522584uzu qqa http://www.tylorprudhomme.com/forums/topic/7749597/ – 5791822vat vsv http://www.rakuyori.com/viewtopic.php?p=641329#641329 – 9946296lzf ydu http://www.rakuyori.com/viewtopic.php?p=641330#641330 – 1766019csb anm http://vplo.altervista.org/smf/index.php?topic=117681.new#new – 6211234sao vjb https://m.yandex.com/collections/card/5c26db6f3bf64400360f268e/ – 2020 film 2458201 https://m.yandex.com/collections/card/5c262f7546db5800400e94f8/ – онлайн Смотреть 4598948 https://m.yandex.com/collections/card/5c26b81b91f6640069e12aff/ – фильмы Кино 6537991 https://m.yandex.com/collections/card/5c26d27211d9cf00879c2aef/ – фильмы film 7636035 https://m.yandex.com/collections/card/5c1ece893bf644005791a097/ – онлайн film 8151715 https://m.yandex.com/collections/card/5c25b3abdba515007d60d5a4/ – фильмы Фильм 2465877 https://m.yandex.com/collections/card/5c1e9b79145a3800432522c0/ – Смотреть film 8703436 https://m.yandex.com/collections/card/5c2615ce46db580042e04003/ – Фильм film 2391681 https://m.yandex.com/collections/card/5c25ab6896e2c900793cbcdd/ – онлайн Смотреть 6238385 https://m.yandex.com/collections/card/5c1f0664a947cc004f32240f/ – онлайн Фильм 3668584 https://m.yandex.com/collections/card/5c1ebf093a86bf0028227d50/ – фильм Смотреть 3758932 https://m.yandex.com/collections/card/5c256919f0d00a004b4bb61d/ – фильм Смотреть 9652959 https://m.yandex.com/collections/card/5c26b5aa2117180030e30f83/ – 2021 Фильм 9207226 https://m.yandex.com/collections/card/5c1f503c51bbf20041bea855/ – онлайн film 2173945 https://m.yandex.com/collections/card/5c1f1e0911d9cf00777a300d/ – Смотреть Кино 9336721 https://m.yandex.com/collections/card/5c1f1ce0d41edd008127f5d9/ – онлайн Смотреть 2349418 https://m.yandex.com/collections/card/5c276e70dba5150086a637c1/ – Смотреть Кино 6361486 https://m.yandex.com/collections/card/5c1f53bb96e2c9007a78cfed/ – фильм Смотреть 7513076 https://m.yandex.com/collections/card/5c1f07d9c9dc70007a34e1c1/ – фильм Фильм 1827727 https://m.yandex.com/collections/card/5c25f0e2103db6008197c647/ – Просмотр film 8697072 https://m.yandex.com/collections/card/5c1edf3e7222140050e829c3/ – Полный Кино 7707542 https://m.yandex.com/collections/card/5c1ef100d87d11005c36697f/ – онлайн Фильм 8670215 https://m.yandex.com/collections/card/5c25ffaff3bc88006e54860b/ – онлайн film 4714888 https://m.yandex.com/collections/card/5c1f7135a947cc004cd1544a/ – онлайн Кино 4976164 https://m.yandex.com/collections/card/5c1f02c82558e20062b42502/ – Фильм Фильм 7843781 https://m.yandex.com/collections/card/5c255c3b96e2c9007177e590/ – онлайн film 9082728 https://m.yandex.com/collections/card/5c2711c55a2978007991ab7e/ – онлайн film 8017598 https://m.yandex.com/collections/card/5c26dd47bfe3df00360d96b5/ – 2020 film 3864511 https://m.yandex.com/collections/card/5c25234c3a86bf002af8c221/ – 2021 Фильм 3182829 https://m.yandex.com/collections/card/5c26010bd87d1100389001b3/ – Смотреть film 8307770 https://m.yandex.com/collections/card/5c1f515e7222140067209faa/ – 2020 Фильм 3291712 https://m.yandex.com/collections/card/5c266e9c103db6007e0a4bba/ – 2020 Смотреть 9437499 https://m.yandex.com/collections/card/5c1fb51bd87d110028fd9a35/ – онлайн Фильм 9173768 https://m.yandex.com/collections/card/5c26fb767222140068b0fee5/ – фильм film 1466734 https://m.yandex.com/collections/card/5c254f2446db58002cbeb0e7/ – онлайн film 9740654 https://m.yandex.com/collections/card/5c277ff946db580032822826/ – Фильм Кино 7723637 https://m.yandex.com/collections/card/5c1e964158c417002a68df1f/ – фильм Фильм 6413251 https://m.yandex.com/collections/card/5c25d3849d87120088c361d2/ – онлайн film 5356358 https://m.yandex.com/collections/card/5c259b483a86bf00424b7dff/ – онлайн Кино 2548748 https://m.yandex.com/collections/card/5c276081eeb4ef0070a3fad1/ – Полный film 1704561 https://m.yandex.com/collections/card/5c26058a91f664007c012d74/ – 2020 Смотреть 2312167 https://m.yandex.com/collections/card/5c2616503a86bf002e92ef25/ – онлайн Фильм 4559841 https://m.yandex.com/collections/card/5c25f6b5f3bc880062b00175/ – фильма Кино 1214558 https://m.yandex.com/collections/card/5c2547fceeb4ef006b84b2f9/ – фильма film 1870586 https://m.yandex.com/collections/card/5c275055de9cba007cf78b5c/ – фильм Смотреть 3873418 https://m.yandex.com/collections/card/5c2623f71bf2ad00653b5ab1/ – Фильм Кино 4224616 https://m.yandex.com/collections/card/5c271ea158c41700708cf374/ – Фильм Кино 6773104 https://m.yandex.com/collections/card/5c25616568d69d005fef9c36/ – онлайн Кино 7887375 https://m.yandex.com/collections/card/5c25dc72145a38003fb92d96/ – Просмотр Фильм 8247477 https://m.yandex.com/collections/card/5c25dce346db58003db5abf0/ – Полный film 2840131 https://m.yandex.com/collections/card/5c25951ebfe3df0073de3fc2/ – фильм Фильм 1240310 https://m.yandex.com/collections/card/5c26f3ea91f664007409598a/ – онлайн Смотреть 8040384 https://m.yandex.com/collections/card/5c261b6b58c417003c7aecfc/ – Смотреть Фильм 2176828 https://m.yandex.com/collections/card/5c25c3aa103db6006216d4c4/ – Полный Смотреть 9460069 https://m.yandex.com/collections/card/5c269acd722214005ea95a17/ – фильмы Кино 9279669 https://m.yandex.com/collections/card/5c2721cc5a297800690b6104/ – фильм Фильм 5345969 https://m.yandex.com/collections/card/5c258e47eeb4ef007be8109d/ – фильмы Кино 5884862 https://m.yandex.com/collections/card/5c2618f62558e2007a79b482/ – онлайн film 7591241 https://m.yandex.com/collections/card/5c1ea99096e2c900825b1b1b/ – 2020 film 8757798 https://m.yandex.com/collections/card/5c1fa3acea4b100037a7c613/ – 2021 Кино 8106946 https://m.yandex.com/collections/card/5c1efdfdd87d110029413f1a/ – онлайн film 1409202 https://m.yandex.com/collections/card/5c257152ad7926003a508a5b/ – 2020 Кино 7971356 https://m.yandex.com/collections/card/5c272aa8145a38002fd6ca1a/ – онлайн Смотреть 1299995 https://m.yandex.com/collections/card/5c269941145a380031f17759/ – Полный Кино 2690367 https://m.yandex.com/collections/card/5c253924722214006751e323/ – фильм film 3157265 https://m.yandex.com/collections/card/5c26e5e2103db60081cd716e/ – онлайн Фильм 3569030 https://m.yandex.com/collections/card/5c26852e4913c7004984b115/ – 2021 Кино 2845796 https://m.yandex.com/collections/card/5c25b40968d69d005a1acd11/ – Просмотр Смотреть 6305298 https://m.yandex.com/collections/card/5c2706966b35ae0059dfcf51/ – онлайн Кино 4017371 https://m.yandex.com/collections/card/5c2573c58ba14a0078158e8f/ – Просмотр Смотреть 4583780 https://m.yandex.com/collections/card/5c25e1a34913c7006826ff2a/ – Полный Фильм 7537859 https://m.yandex.com/collections/card/5c1eee639d8712006d565388/ – 2020 Смотреть 4225041

Leave a Reply

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