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

  • Home
  • SEARCH
  • 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 6156291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:35:02+00:00 2026-05-23T20:35:02+00:00

I have arranged a database with three schemas. Under Database User, I have ticked

  • 0

I have arranged a database with three schemas. Under Database User, I have ticked the three schemas as Owned Schemas of the user I’m connecting via (thought it was a good idea at the time).

However, this seems to be disallowing me to add the db user in question to permissions for stored procedures which are also under the same three schemas (not dbo). I select the db user, select execute and then click OK. Go back and the permission has gone.

I’m pretty sure I’ve screwed the database up as each tick under Database User (General) is greyed out.

Schemas Greyed Out

I’ve not had any problems with permissions whilst developing my ASP.Net site until I was trying to pass customer data to an INSERT stored procedure that also encrypts the customer’s password. When the SP is called I get the following error:

Cannot find the symmetric key ‘myKey’,
because it does not exist or you do
not have permission.

I can run the SP perfectly in SSMS and the password is encrypted fine.

Where am I missing providing permissions? Are the greyed out schemas the problem? Or is this an ASP.Net c# issue?

  • 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-05-23T20:35:03+00:00Added an answer on May 23, 2026 at 8:35 pm

    You will need to use EXECUTE AS to change the permission to a db user with rights to open the encryption key.

    If you try executing the SP after using EXECUTE AS USER=’ASPUser’ you should get the same issue.

    Here is a link a video with the details on Security EXECUTE AS and SQL Injection
    and MSDN Entry on EXECUTE AS for procedures and EXECUTE AS USER

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

Sidebar

Related Questions

I have a canvas with user controls arranged on it. When a tooltip is
I have three tables arranged to make a many to many relationship (Contacts, PurchaseOrder,
Say I have 3 frames in a frameset arranged in 3 rows. Frames 1
We have a page that ordinarily has two elements arranged side-by-side. Despite exploring a
Say I have a list and I want it arranged so that the sum
I have to display a list from the database column titled Region .....for every
I have an sqlite database on android created like this: sqlite> .schema CREATE TABLE
I have a class that gets arranged into a hierarchy, such as this: class
I have a database that has newsletter entries that I want to arrange according
I have some dates/events in a database, and I'd like to pull them out

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.