Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8855727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:12:08+00:00 2026-06-14T14:12:08+00:00

I have a three part question that address SYMMETRIC KEYs in SQL Server 2008

  • 0

I have a three part question that address SYMMETRIC KEYs in SQL Server 2008 R2.

  1. How can I restrict just one account to access the ability to ENCRYPT/DECRYPT using a SYMMETRIC KEY?
  2. When data is passed to SQL Server, it is passed “in-the-clear” and can be passed by both stored procs and ad-hoc queries. Can I use a trigger for updating the column that needs encrypting as it’s being inserted using the account above and the SYMMETRIC KEY?
  3. In a year’s time, by my company’s policy, the keys will have to rotated and changed. Is there a way to rotate the keys easily, or will this require a (decrypt with old key, encrypt with new key) script?

FYI, We am using SQL Server 2008 R2 Standard and don’t have the benefit of TDE. 🙁

Thanks for your replies! 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:12:10+00:00Added an answer on June 14, 2026 at 2:12 pm

    Encryption is usually controlled by controlling the encryption hierarchy, not (only) by access control. In other words users can encrypt and decrypt the data by virtue of knowing the decryption/encryption key (the password that protects the key, to be specific). All good encryption schemes use a key hierarchy. A typical simple hierarchy is

    • data is encrypted with a symmetric key
    • the symmetric key is encrypted with a certificate
    • the private key associated with the certificate is encrypted with a password
    • authorized users provide the private key decryption password in order to access the data

    You can also add explicit grant/deny/revoke permissions on the certificates used, see GRANT Certificates Permissions but that is no substitute to knowing the certificate encryption password password. Now back to your questions:

    How can I restrict just one account to access the ability to ENCRYPT/DECRYPT using a SYMMETRIC KEY

    The ability should apply to the certificate that encrypts the symmetric key, not to the symmetric key itself. With this level of indirection you can create a certificate for each user that has accesses to the data, and have each user know only its own access password. Revoking access is a s simple as dropping the certificate for that one particular user, w/o affecting any other user’s access. Adding a new user implies adding a new certificate and adding this new certificate’s encryption to the symmetric key encrypting the data, thus in effect granting access to the data. The alternative of users sharing the access password never works in practice due to social reasons.

    Can I use a trigger for updating the column that needs encrypting as it’s being inserted using the account above and the SYMMETRIC KEY

    Ideally the application layer should call a stored procedure for manipulating data that explicitly encrypts the data before insert. You can roll a poor-man ‘transparent’ solution by using INSTEAD OF triggers. A computed column can expose the decrypted data, it will show NULL to all users (sessions) that did not properly open a decryption certificate first.

    the keys will have to rotated and changed

    You rotate the certificates that encrypt the symmetric key, not the symmetric key itself. The symmetric key should also be changed periodically but not roatated, simply add a new symmetric key and start using it for new data and updates of the old data, in order to limit the scope of a brute force and to reduce birthday-attack probabilities. The justification is that re-encrypting the data-at rest is often prohibitively expensive. Most encryption schemes rotate a key higher in the encryption hierarchy (ie. the certificates mentioned above) not the actual symmetric key used to encrypt the data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a three part question based on a dataframe (df is example rows)
I have three divs stacked on each other but offset so that a part
I have a table in SQL Server 2000 that I am trying to query
I have a set of three double values as part of an anonymous expression
Have three divs in a container that I want to float over a large
Two part question Part one: I am trying to create an ASynchronous request to
This is not exactly a straight-out question because I have just solved it, but
Part 1 I want to build a PHP Zend Framework application that users can
Of course I realize that there's no one right way to design a SQL
I have this code as part of a nodejs application that runs behind an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.