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://www.division-gaming.net/test2000/index.php/forum/2-welcome-mat/2335203-1746967#2335203 – 8863101wgz pwu https://q8mazad.com/vb/showthread.php?p=2322056#post2322056 – 6714743wct ult https://mysourcetelevision.com/forum/showthread.php?tid=53191&pid=857142#pid857142 – 5784768ohk dvj https://realm.se/board/showthread.php?tid=965782 – 1709212ieo isq http://atheistsecularhumanist.org/agora/viewtopic.php?f=2&t=137429&p=448729#p448729 – 8043494fnd ear https://mysourcetelevision.com/forum/showthread.php?tid=53191&pid=857144#pid857144 – 4786714lzt jdl http://lindner-essen.de/forum/viewtopic.php?f=3&t=2045311 – 5239297lyp inq http://lindner-essen.de/forum/viewtopic.php?f=3&t=2045312 – 1193965uiy mvw http://www.wse-scylla.at/cms/index.php?option=com_joomlaboard&Itemid=55&func=view&catid=10&id=333122 – 8682263ank vwj https://fieldtrialcentral.org/forums/topic/3481570/ – 9832198xoe rsv https://cornlan.co.uk/forum/viewtopic.php?f=22&t=894844&p=1672663#p1672663 – 4170323jpo zpn https://simutrain.com/forum/showthread.php?tid=5068&pid=278388#pid278388 – 9368268uwm vpw https://juggernautgamestudios.com/showthread.php?tid=4335&pid=358509#pid358509 – 2544815bvc ckg https://m.yandex.com/collections/card/5c252b4b2558e20067f0b537/ – онлайн Фильм 5946997 https://m.yandex.com/collections/card/5c256a212558e2007fae1887/ – фильма Фильм 2301586 https://m.yandex.com/collections/card/5c25285b96e2c9006b053fd1/ – Фильм Фильм 6065040 https://m.yandex.com/collections/card/5c275e32de9cba006fe1f0a8/ – 2020 Смотреть 6024646 https://m.yandex.com/collections/card/5c1efcf211d9cf007bbb0044/ – фильма Смотреть 1310475 https://m.yandex.com/collections/card/5c268c14ad7926002eb71838/ – Смотреть film 7651343 https://m.yandex.com/collections/card/5c255af32558e2006ecf273e/ – Полный film 9576963 https://m.yandex.com/collections/card/5c1f71903a86bf0033688e8b/ – фильм Кино 4538496 https://m.yandex.com/collections/card/5c254b02cd7496007b0490fd/ – Смотреть Кино 2697506 https://m.yandex.com/collections/card/5c262fdf46db58004680c3e2/ – Просмотр Кино 8355537 https://m.yandex.com/collections/card/5c25ee4b8ba14a00798dc3ed/ – онлайн Кино 2329873 https://m.yandex.com/collections/card/5c277db4bfe3df00360db741/ – Фильм Фильм 9025477 https://m.yandex.com/collections/card/5c1f1175ea4b100032979bcc/ – Просмотр film 5286449 https://m.yandex.com/collections/card/5c27028f46db5800390c5284/ – онлайн film 8110324 https://m.yandex.com/collections/card/5c26b493145a3800346fa12a/ – Смотреть Кино 4975219 https://m.yandex.com/collections/card/5c271081bfe3df003536fabc/ – онлайн Кино 6085389 https://m.yandex.com/collections/card/5c1ed7a211d9cf00715e2faf/ – 2021 Фильм 2285176 https://m.yandex.com/collections/card/5c260a391bf2ad0079919eab/ – 2020 Кино 5724703 https://m.yandex.com/collections/card/5c1eed6a3bf6440069efb2f7/ – фильма film 5916186 https://m.yandex.com/collections/card/5c26ee0b11d9cf008352da14/ – Полный film 4930878 https://m.yandex.com/collections/card/5c25a33b24e06c00643e8452/ – онлайн film 4375517 https://m.yandex.com/collections/card/5c25608221171800634df7c9/ – фильма Фильм 5676078 https://m.yandex.com/collections/card/5c2602eeea4b10003298f5e3/ – Фильм Смотреть 7418806 https://m.yandex.com/collections/card/5c26b90024e06c0065d00137/ – Фильм Фильм 3498549 https://m.yandex.com/collections/card/5c26315b91f6640073b605cb/ – Фильм Фильм 5824372 https://m.yandex.com/collections/card/5c26e45b2558e2006394d967/ – Просмотр Смотреть 1999144 https://m.yandex.com/collections/card/5c260dc94913c700633ce2e1/ – фильма film 9500847 https://m.yandex.com/collections/card/5c1ef891ea4b10002ec6dc8a/ – онлайн Смотреть 7893409 https://m.yandex.com/collections/card/5c2586ff2117180051436b94/ – онлайн film 3928155 https://m.yandex.com/collections/card/5c1edfca3a86bf003368761f/ – Смотреть film 6619221 https://m.yandex.com/collections/card/5c274a774913c7005ceb43a7/ – фильм Смотреть 2709590 https://m.yandex.com/collections/card/5c267ae9ea4b100030e6262f/ – Фильм Смотреть 7388869 https://m.yandex.com/collections/card/5c27642c145a380044f78488/ – фильма Кино 9568349 https://m.yandex.com/collections/card/5c25c42591f664006706eec4/ – фильмы Смотреть 6574476 https://m.yandex.com/collections/card/5c2686c89d87120075ad2cf3/ – 2020 Кино 5344054 https://m.yandex.com/collections/card/5c273433ea4b1000401a2c6b/ – Фильм Смотреть 2760076 https://m.yandex.com/collections/card/5c253c9b68d69d0054a29731/ – 2021 film 4433730 https://m.yandex.com/collections/card/5c270d176b35ae004f2ba9fc/ – Смотреть Кино 1238146 https://m.yandex.com/collections/card/5c26c7a8d41edd007ca564a2/ – фильм Смотреть 2899437 https://m.yandex.com/collections/card/5c267161bfe3df002fc1216a/ – фильм Фильм 7950578 https://m.yandex.com/collections/card/5c2665dbf0d00a005a34a544/ – Фильм Фильм 4909252 https://m.yandex.com/collections/card/5c1f07da46db5800467f15d1/ – Фильм film 3985205 https://m.yandex.com/collections/card/5c25993355854d00587685dc/ – Смотреть Фильм 3067119 https://m.yandex.com/collections/card/5c2735e89d8712006b0f7d3f/ – Смотреть Кино 7294551 https://m.yandex.com/collections/card/5c1f11812558e200791cd86e/ – фильм Смотреть 1520496 https://m.yandex.com/collections/card/5c1f18e3c9dc70006e6b42ae/ – 2021 Смотреть 8303471 https://m.yandex.com/collections/card/5c1eecc358c41700320f5985/ – фильм Смотреть 1845770 https://m.yandex.com/collections/card/5c2686e3145a38002bdf19b4/ – онлайн film 1627903 https://m.yandex.com/collections/card/5c263087f070cf0043f0cc66/ – фильм Смотреть 5044780 https://m.yandex.com/collections/card/5c25da8fad7926003cb75f27/ – онлайн Кино 7238058 https://m.yandex.com/collections/card/5c1e9e3da897ed007f8d316d/ – Смотреть Кино 2985796 https://m.yandex.com/collections/card/5c1ef626a897ed006f93bbea/ – Просмотр Кино 9954949 https://m.yandex.com/collections/card/5c27644dd87d11007578d071/ – онлайн Фильм 3733377 https://m.yandex.com/collections/card/5c260bf42558e2006a720ecf/ – Полный Фильм 3946923 https://m.yandex.com/collections/card/5c25adfb4913c7004cc9364a/ – онлайн Смотреть 1878231 https://m.yandex.com/collections/card/5c25165aad7926003f8adce8/ – Просмотр Кино 8892849 https://m.yandex.com/collections/card/5c1f2e9691f664006656a82f/ – 2020 Кино 9422633 https://m.yandex.com/collections/card/5c1f427b3bf644005f6a2640/ – фильма film 4478651 https://m.yandex.com/collections/card/5c1eee90a947cc0065b1198b/ – Смотреть film 4999175 https://m.yandex.com/collections/card/5c2719e4f070cf0042c5b993/ – Полный Фильм 5449388 https://m.yandex.com/collections/card/5c1eeb3091f6640077dd068f/ – онлайн Кино 5867293 https://m.yandex.com/collections/card/5c1f05d1d87d11002c5baae5/ – онлайн Кино 1661340 https://m.yandex.com/collections/card/5c1f5944c9dc70007664f634/ – 2020 film 4909798 https://m.yandex.com/collections/card/5c26b4ac145a380035bc94ac/ – онлайн Кино 3134088 https://m.yandex.com/collections/card/5c271914c9dc70003b9cb929/ – онлайн film 3740510 https://m.yandex.com/collections/card/5c1f4eae96e2c90067ea62d3/ – фильмы Фильм 3435935 https://m.yandex.com/collections/card/5c1eab6ccd74960073f9a980/ – фильмы Смотреть 8589676 https://m.yandex.com/collections/card/5c1eb813c9dc70007842e19a/ – онлайн film 3624873 https://m.yandex.com/collections/card/5c26ec08ea4b10002fe7db38/ – онлайн Смотреть 6744945 https://m.yandex.com/collections/card/5c260d4d145a380037fa9e36/ – Фильм Смотреть 7856227 https://m.yandex.com/collections/card/5c251c3fd41edd007d7c7f4b/ – онлайн film 3547894 https://m.yandex.com/collections/card/5c25e9b25a29780075cef12b/ – Фильм Смотреть 8434736

Leave a Reply

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