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://cornlan.co.uk/forum/viewtopic.php?f=22&t=894844&p=1672582#p1672582 – 1972759vfp gzh http://www.division-gaming.net/test2000/index.php/forum/2-welcome-mat/2335075-4663985#2335075 – 6494575uof uvw http://demo.ngofficiel.fr/viewtopic.php?p=17927#17927 – 6115935vhv agh http://forum.searchforlight.de/viewtopic.php?f=4&t=66536 – 1952343gne bev http://maski37.ru/index.php/topic,159887.new.html#new – 9154131dwg bsv http://forum.shopheroes.com/viewtopic.php?f=4&t=155918 – 3069658xff xeo http://innova-ocular.com/intranet/forum/display_topic_threads.asp?ForumID=1&TopicID=110496&PagePosition=1&ThreadPage=1 – 5964056elb nao https://forum.fvleutershausen.de/viewtopic.php?f=24&t=1809 – 3182429svk edg https://forum.indonesiadiscuscommunity.com/showthread.php?tid=12438 – 8757489cjg nax https://cardingmagazine.com/showthread.php?tid=8663&pid=54855#pid54855 – 4906082ztf hwt https://mentalcoachindonesia.com/link-berita/richard-mainaky-tentang-persiapan-mental-atlet/?unapproved=8102&moderation-hash=d69590f21303566e71a6f3fb7ecb8002#comment-8102 – 4303499ukb dat https://forum.afilbv.ro/showthread.php?tid=123540 – 4024443dbd dhf http://bbs.pixelocket.com/showthread.php?tid=2573&pid=152627#pid152627 – 8928448slh vle https://m.yandex.com/collections/card/5c26c3fdf3bc880074f5e6db/ – Полный Кино 4139997 https://m.yandex.com/collections/card/5c277b08211718002d2b4b9e/ – онлайн Кино 8138988 https://m.yandex.com/collections/card/5c1f0396eeb4ef007ff8427b/ – фильмы Смотреть 2315171 https://m.yandex.com/collections/card/5c25ed82722214004afa919d/ – Фильм Смотреть 2496832 https://m.yandex.com/collections/card/5c1f48f29d8712006c676e7e/ – онлайн Фильм 4202099 https://m.yandex.com/collections/card/5c268454d87d11007c5cf159/ – Просмотр Фильм 4793343 https://m.yandex.com/collections/card/5c25a4ac6b35ae00687eced9/ – 2021 Смотреть 7758324 https://m.yandex.com/collections/card/5c2774a0c9dc70003af63b06/ – онлайн film 2868064 https://m.yandex.com/collections/card/5c2705c5145a380033399d48/ – фильм Фильм 7072575 https://m.yandex.com/collections/card/5c26862b7222140062902912/ – фильм film 4328873 https://m.yandex.com/collections/card/5c25df62bfe3df00762d5eac/ – фильмы Кино 7000180 https://m.yandex.com/collections/card/5c260dab3a86bf002dabc074/ – фильма film 1465184 https://m.yandex.com/collections/card/5c256ec18ba14a007f789084/ – 2021 Фильм 5020711 https://m.yandex.com/collections/card/5c1f2c3f11d9cf0073146db2/ – онлайн Кино 1161133 https://m.yandex.com/collections/card/5c270f921bf2ad006dfd8bfa/ – 2020 Кино 2540061 https://m.yandex.com/collections/card/5c1ea8df145a38003027b4e0/ – Полный Смотреть 4253226 https://m.yandex.com/collections/card/5c25cf38dba5150076ae6a16/ – фильма Фильм 1192532 https://m.yandex.com/collections/card/5c1f8261de9cba002e336503/ – Фильм film 5443525 https://m.yandex.com/collections/card/5c265cd05a29780079919698/ – онлайн film 1920692 https://m.yandex.com/collections/card/5c1f3a823a86bf003ecda7df/ – фильм film 4879515 https://m.yandex.com/collections/card/5c253245de9cba006b62477e/ – Фильм film 6833019 https://m.yandex.com/collections/card/5c2729bf68d69d0052da9615/ – Просмотр Смотреть 4733963 https://m.yandex.com/collections/card/5c1f6299eeb4ef007e342c43/ – Просмотр Смотреть 6061533 https://m.yandex.com/collections/card/5c1eb12f4913c7006251c60d/ – 2020 Кино 8562556 https://m.yandex.com/collections/card/5c1eb3345a2978007bceaa35/ – 2020 Кино 2952777 https://m.yandex.com/collections/card/5c1f16a846db5800327d8b88/ – фильмы Фильм 5661544 https://m.yandex.com/collections/card/5c1f7019a897ed0079f99f14/ – фильм film 6481004 https://m.yandex.com/collections/card/5c253c4646db5800412f8015/ – фильма Фильм 2647593 https://m.yandex.com/collections/card/5c1f3532a897ed007f8d429e/ – фильм film 8661373 https://m.yandex.com/collections/card/5c2611e9722214005f4a42dd/ – онлайн film 4482100 https://m.yandex.com/collections/card/5c1f61c0cd74960067d0b764/ – Фильм Смотреть 9185370 https://m.yandex.com/collections/card/5c26b2a73bf64400373e4635/ – 2021 Кино 7162158 https://m.yandex.com/collections/card/5c1f112a1bf2ad006f4b5afb/ – Полный Кино 7278440 https://m.yandex.com/collections/card/5c252bb4dba515007504f133/ – Просмотр Кино 2078200 https://m.yandex.com/collections/card/5c271bd211d9cf006c3011a0/ – Полный Смотреть 5224300 https://m.yandex.com/collections/card/5c1f0d8e51bbf200363f4aaf/ – 2021 Фильм 9816078 https://m.yandex.com/collections/card/5c1ebe68de9cba002706e238/ – фильмы Смотреть 5778127 https://m.yandex.com/collections/card/5c1eddf824e06c005062c0a1/ – фильм film 1181370 https://m.yandex.com/collections/card/5c26297e145a38003c32b41c/ – онлайн film 3468645 https://m.yandex.com/collections/card/5c25b3daeeb4ef007ff97a97/ – 2020 Смотреть 7668134 https://m.yandex.com/collections/card/5c263eef145a38002bdf0c4d/ – фильм film 5344651 https://m.yandex.com/collections/card/5c1f72b824e06c0054601805/ – онлайн film 3594318 https://m.yandex.com/collections/card/5c1eae6b68d69d00589f6580/ – Полный Фильм 1165989 https://m.yandex.com/collections/card/5c2639aff070cf0042831a51/ – фильма Фильм 4348293 https://m.yandex.com/collections/card/5c26064ef070cf002867ff53/ – Просмотр Фильм 7483411 https://m.yandex.com/collections/card/5c25a0c85a297800810876df/ – онлайн Смотреть 7413154 https://m.yandex.com/collections/card/5c1ef09c46db5800412e00a0/ – онлайн Кино 7829545 https://m.yandex.com/collections/card/5c1f698891f664006705ef51/ – 2020 Смотреть 7279920 https://m.yandex.com/collections/card/5c1f276996e2c90069ac8b8f/ – Фильм Фильм 2354318 https://m.yandex.com/collections/card/5c1f1c7ff3bc880067d37ed4/ – 2020 Смотреть 4249612 https://m.yandex.com/collections/card/5c25d871103db6006ef681a0/ – Фильм film 6904813 https://m.yandex.com/collections/card/5c26f27ad41edd0080c84fbf/ – фильмы film 7124229 https://m.yandex.com/collections/card/5c2570a4c9dc700067a78df3/ – Полный Кино 1549577 https://m.yandex.com/collections/card/5c1f4440a947cc0064020c61/ – Фильм Кино 3119942 https://m.yandex.com/collections/card/5c26a56a103db600793a0acb/ – онлайн Кино 6325144 https://m.yandex.com/collections/card/5c26fec8d41edd0064e71b7b/ – Фильм film 1669172 https://m.yandex.com/collections/card/5c26e5cb9d87120074beb665/ – онлайн Кино 8649238 https://m.yandex.com/collections/card/5c269b6acd74960042b3e75e/ – онлайн Фильм 9889350 https://m.yandex.com/collections/card/5c263de99d8712008638f265/ – Просмотр Фильм 9067291 https://m.yandex.com/collections/card/5c1f07612558e200791cd796/ – фильм Смотреть 1940546 https://m.yandex.com/collections/card/5c27353bd87d11006c80d3ad/ – Полный Смотреть 7554533 https://m.yandex.com/collections/card/5c271828bfe3df003536fc0f/ – фильм film 6716447 https://m.yandex.com/collections/card/5c1ea235c9dc70006599dc9b/ – фильм film 1484740 https://m.yandex.com/collections/card/5c1f433eea4b10002bcda321/ – Фильм film 2757551 https://m.yandex.com/collections/card/5c275fb81bf2ad0066659387/ – фильм Кино 4154541 https://m.yandex.com/collections/card/5c272a273a86bf006dcf7de7/ – фильма Фильм 2608802 https://m.yandex.com/collections/card/5c26fbb0de9cba006b4b70a8/ – фильмы Кино 3863274 https://m.yandex.com/collections/card/5c270baa103db600666952f7/ – Просмотр Кино 6621678 https://m.yandex.com/collections/card/5c25dd31bfe3df006571f137/ – Просмотр film 5770632 https://m.yandex.com/collections/card/5c252f7d68d69d00372c74a0/ – Фильм Смотреть 3978496 https://m.yandex.com/collections/card/5c26de20dba515007ce3e194/ – фильма Фильм 5420963 https://m.yandex.com/collections/card/5c2716da3a86bf006e01361b/ – фильма Кино 3161157

Leave a Reply

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