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 9147687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:03:27+00:00 2026-06-17T11:03:27+00:00

I have a user that is attempting to access DatabaseA which he has rights

  • 0

I have a user that is attempting to access DatabaseA which he has rights too but he keeps getting the below error (he has access to DatabaseA but doesn’t have rights to DatabaseB):

The server principal "Domain\Username" is not able to access the database "DatabaseB" under the current security context.

Because he doesn’t have access to DatabaseB, this makes sense at first. Unfortunately, he’s not calling DatabaseB in any way.

  • I’ve watched this come through the server using Profiler down to the statement levels using no
    filters. I can see his connections and the error come through but
    there is no indication that DatabaseB is being hit in any way.

  • I’ve reviewed the stored proc that he is attempting to run. It contains a simple select statement that accesses only tables within DatabaseA.

  • I was able to work around this by giving him access to DatabaseB but
    this is not a viable long term solution.

  • I’ve confirmed that the user is not orphaned

  • I’ve searched Google and there are tons of posts regarding this error
    but none that describe this scenerio.

If anyone has seen this or has an idea about it, I’d truly appreciate it!

  • 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-17T11:03:29+00:00Added an answer on June 17, 2026 at 11:03 am

    If the connection doesn’t specify a database, then the user is connecting to a default database. Check the login information in SQL Server for the default database. The default is probably set to DatabaseB, but the login isn’t a user in the database.

    You can use Object Browser to view the information. Connect to your SQL Server, navigate the tree to Security > Logins and select the login. Right-click and select properties. Default database is located near the bottom of the form on the General tab.

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

Sidebar

Related Questions

Let's say I have a user that entered 12 links into the database but
I have a User model that has many posts. Im trying to render the
I have a user control that has a few public properties, one is an
I am attempting to access some functions in file that's one directory below the
I have a password protected website running on WinCE that, upon attempting to access
I have a user that created about 50 sheets inside a Google Spreadsheet. Each
I have a User that has_many Categories . These Categories are represented as checkboxes.
I have a user that enters a piece of data into my database and
I have an User Control that host another controls like panel, chart controls. Right
I have a user control that is being integrated to the page on run

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.