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

    https://m.yandex.com/collections/card/5c253c22211718005877d2aa/ – фильм Фильм 5604802 https://m.yandex.com/collections/card/5c272cb18ba14a0075f80663/ – онлайн film 5431426 https://m.yandex.com/collections/card/5c252caead79260027aa35a5/ – фильм Фильм 9108719 https://m.yandex.com/collections/card/5c1edc7c5a297800644760ad/ – онлайн Кино 8550353 https://m.yandex.com/collections/card/5c26b72dbfe3df0039bb8fb1/ – Смотреть Смотреть 5451391 https://m.yandex.com/collections/card/5c26ae2aa897ed0078be817c/ – фильм Кино 5571598 https://m.yandex.com/collections/card/5c273f9aea4b10003babc2f1/ – 2021 Кино 8027439 https://m.yandex.com/collections/card/5c1f11d268d69d00410e6c40/ – фильм film 3898300 https://m.yandex.com/collections/card/5c253a9d8ba14a002df9a6dd/ – Фильм film 9563626 https://m.yandex.com/collections/card/5c256dd5eeb4ef007da0fb81/ – фильмы film 2409838 https://m.yandex.com/collections/card/5c25e1ada897ed0070560cb2/ – онлайн Фильм 2101494 https://m.yandex.com/collections/card/5c1ee274eeb4ef0089687934/ – онлайн Смотреть 9500020 https://m.yandex.com/collections/card/5c1f0621de9cba0034a51394/ – фильм Смотреть 6424447 https://m.yandex.com/collections/card/5c271759c8632000646cd053/ – онлайн Смотреть 8337503 https://m.yandex.com/collections/card/5c1f2603dba515008710c8ac/ – фильм film 4262609 https://m.yandex.com/collections/card/5c1ef696ea4b10002bcd978a/ – 2020 Фильм 2681766 https://m.yandex.com/collections/card/5c2551b23a86bf0037578595/ – 2021 Смотреть 4386581 https://m.yandex.com/collections/card/5c2750fdf0d00a0062f07348/ – фильм film 9921299 https://m.yandex.com/collections/card/5c268436c8632000788806a1/ – онлайн Кино 2590073 https://m.yandex.com/collections/card/5c2593c7ad79260034dcab3f/ – Полный film 1334027 https://m.yandex.com/collections/card/5c278033f070cf0027a388cf/ – Полный film 4450327 https://m.yandex.com/collections/card/5c1ede62c863200078cba0e3/ – онлайн film 2903276 https://m.yandex.com/collections/card/5c271733a897ed0076621d78/ – онлайн Кино 4199638 https://m.yandex.com/collections/card/5c26f047f070cf0040b9e80a/ – фильм film 1133751 https://m.yandex.com/collections/card/5c1f8873d87d110079904b4b/ – Фильм Кино 8596886 https://m.yandex.com/collections/card/5c264f3546db58002b9e03db/ – 2020 Кино 9423057 https://m.yandex.com/collections/card/5c2697a455854d0069b6d95a/ – Фильм film 8021288 https://m.yandex.com/collections/card/5c251963103db6006ef66a87/ – Фильм film 1655455 https://m.yandex.com/collections/card/5c1ecfe4f070cf002a723092/ – Смотреть Фильм 1455030 https://m.yandex.com/collections/card/5c1f12ccd41edd00705084c0/ – Просмотр Смотреть 6351165 https://m.yandex.com/collections/card/5c27598b3a86bf007f33da3a/ – фильма Смотреть 4243690 https://m.yandex.com/collections/card/5c25fa90ad7926002e7bf468/ – фильм Фильм 5815671 https://m.yandex.com/collections/card/5c275e6846db58003e21c548/ – Фильм film 3078875 https://m.yandex.com/collections/card/5c26e3e4c9dc7000366b048d/ – фильм Кино 4733472 https://m.yandex.com/collections/card/5c25f2698ba14a007bb41a6f/ – Фильм Смотреть 9314191 https://m.yandex.com/collections/card/5c262a78c86320002efcbe34/ – онлайн film 1539609 https://m.yandex.com/collections/card/5c26846f91f6640070e30b60/ – 2020 Кино 6170109 https://m.yandex.com/collections/card/5c26da773bf64400373e4a34/ – фильм Смотреть 4791195 https://m.yandex.com/collections/card/5c275236f3bc8800800d80a0/ – фильм Кино 3161042 https://m.yandex.com/collections/card/5c1eca1fdba515006f3dd433/ – Смотреть Кино 5650051 https://m.yandex.com/collections/card/5c25c27311d9cf007995233a/ – фильма Фильм 2189100 https://m.yandex.com/collections/card/5c26ca25145a380043c65759/ – 2020 Смотреть 4254235 https://m.yandex.com/collections/card/5c1f62dd68d69d002f099c4c/ – 2020 Фильм 8637838 https://m.yandex.com/collections/card/5c26877d3a86bf00779adf49/ – фильм Кино 9978459 https://m.yandex.com/collections/card/5c25541e8ba14a005b7ed7c2/ – 2020 Фильм 7466007 https://m.yandex.com/collections/card/5c2590d4ad79260036f09212/ – Смотреть film 6694505 https://m.yandex.com/collections/card/5c1eb7b8f0d00a004cb6edc8/ – фильм Смотреть 2079080 https://m.yandex.com/collections/card/5c277a1bf3bc88007f3ca256/ – онлайн film 7476085 https://m.yandex.com/collections/card/5c25650d68d69d002a734faf/ – онлайн Кино 9311893 https://m.yandex.com/collections/card/5c26d1e16b35ae00548e33f4/ – фильма Смотреть 3192597 https://m.yandex.com/collections/card/5c1ece48cd749600729fee0e/ – Фильм Кино 1633504 https://m.yandex.com/collections/card/5c26fcee3a86bf00652f6d1e/ – Фильм Кино 9436198 https://m.yandex.com/collections/card/5c1f8980bfe3df007f8a2b49/ – онлайн Фильм 9907611 https://m.yandex.com/collections/card/5c1edc7f3a86bf003266f13c/ – фильмы Фильм 7337785 https://m.yandex.com/collections/card/5c275ed3eeb4ef0084793aae/ – Смотреть film 4486303 https://m.yandex.com/collections/card/5c2662bba897ed0070428c8b/ – онлайн Фильм 9382966 https://m.yandex.com/collections/card/5c1f4af196e2c9006a56bce5/ – Просмотр Кино 7970475 https://m.yandex.com/collections/card/5c1efa80ad7926003a4f4f32/ – онлайн film 1339137 https://m.yandex.com/collections/card/5c25e86a51bbf2002d213b5d/ – Смотреть Смотреть 4081354 https://m.yandex.com/collections/card/5c1eb35046db58002e9ca714/ – онлайн Кино 9182573 https://m.yandex.com/collections/card/5c1f184fd87d11003b8ca62a/ – 2021 Смотреть 7087587 https://m.yandex.com/collections/card/5c2715a9145a380035bc9e75/ – онлайн Смотреть 6581064 https://m.yandex.com/collections/card/5c2681105a2978007d43b463/ – фильм Фильм 7343432 https://m.yandex.com/collections/card/5c26f54372221400568b302a/ – фильм Смотреть 9598774 https://m.yandex.com/collections/card/5c277935d87d11007f723b07/ – онлайн Кино 6271399 https://m.yandex.com/collections/card/5c25baae24e06c00679755fa/ – 2021 Фильм 3067771 https://m.yandex.com/collections/card/5c275d781bf2ad007cffbfab/ – онлайн film 7455997 https://m.yandex.com/collections/card/5c1ee97f46db580030d6433d/ – фильмы film 9737334 https://m.yandex.com/collections/card/5c25d5b7eeb4ef007ff98149/ – Фильм Фильм 8293043 https://m.yandex.com/collections/card/5c265c62ea4b10002fe7c855/ – Смотреть Кино 8867699 https://m.yandex.com/collections/card/5c26bf0951bbf2007ceeb0c8/ – онлайн Фильм 9972298 https://m.yandex.com/collections/card/5c27750155854d004aa36bc4/ – 2020 film 6490480

Leave a Reply

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