[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

What is involved in encrypting a single column of a SQL 2005 databas?

Asked by jflanner in MS SQL Server

Tags: 2000, data, server

Hello Folks:

This really is not a question.  I need to confirm my understanding of column level encryption in SQL 2005.  I’ll divi up points based on the value responses add to this conversation.  References strongly appreciated.

We are upgrading from SQL 2000 -> 2005.  I am charged with doing a proof of concept on encrypting the most performance sensitive column of the most performance sensitive table in our database.

I want to find a magic certificate based solution where the DBMS encrypts the column for me with a single command.  From there, when the table is queried from a machine with the magic certificate installed, it gets plain text returned.  If the certificate is not there, hash is returned.  Also in the magic solution, if a select statement is passed to the dbms containing a where clause with the column in plain text – the dbms is smart enough to encrypt that value before interrogating indexes.  Finally – in the magic solution – I do not have to change my ASP.NET application, short of installing the magic certificate on my web servers.

As usual, I am not finding magic.  I am finding SQL 2005 has plenty of encryption alternatives, but not the solution above.    

I intend to do certificate based triple DES encryption of the column.  I am discovering:

1)      The schema of the table must change.  Specifically – the column in question must change for a varchar to a varbinary.

2)      My application is always responsible for encrypting/decrypting the data.  SQL 2005 provides the tools (EncryptByCert, DecryptByCert).  It does not do the function unless asked.  (My ASP.NET application has to change.)

3)      The key produced is database specific.  So I need to replace snapshot based transactional replication schemes with SQL 2005 database mirroring.  (This is a good thing.)

4)      My ASP.NET app needs to be performance aware.  If searching for a specific row based on plain text, it would have to encrypt the plain text and perform the search based on the encrypted value.

Again, please respond with anything you can add to this – or if you wish to debate what I have found above.  I can be wrong.  Thanks in advance.
[+][-]02/04/07 05:46 PM, ID: 18465299Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: MS SQL Server
Tags: 2000, data, server
Sign Up Now!
Solution Provided By: QPR
Participating Experts: 1
Solution Grade: A
 
[+][-]03/31/07 03:42 PM, ID: 18830048Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]03/31/07 07:05 PM, ID: 18830859Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/07/07 07:50 PM, ID: 18871209Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091118-EE-VQP-93