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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:23:32+00:00 2026-06-13T08:23:32+00:00

Oh yes, the famous error: Cannot open database MYDBNAME requested by the login. The

  • 0

Oh yes, the famous error:

Cannot open database “MYDBNAME” requested by the login. The login failed. Login failed for user ‘USERNAME’.

Let me explain my situation:

I have a database server, which has a SA account and my user account. The user has the correct mappings to my database (dbowner).

I can open the database with this user, using SQL Management Studio 2008 R2, both on the SQL server itself (using localhost), and on my frontend server.

However, when I run my application, I get the login failed error.

Strange thing is I have a test application and a production application on our frontend server. The test application has test databases on the same database server, and there are no login problems here. The only difference between the two, are the prefix which differs from “TEST” to “PROD”. The test application works, the production however, doesn’t. The user mappings and seem it should work on both.

Any ideas?

EDIT:

Our connectionstring:

<add key="umbracoDbDSN" value="Server=Websqlsrv01;Database=PROD_Databasename;User ID=umbraco_user;Password=password;Trusted_Connection=False" />
  • 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-13T08:23:33+00:00Added an answer on June 13, 2026 at 8:23 am

    Sql server has a dichotomy login/user

    they are 2 different entity:

    http://www.akadia.com/services/sqlsrv_logins_and_users.html

    maybe your sql login is not associated with an user for database PROD_Databasename but only for TEST_Databasename

    another cause could be the user default database or eventually different database schemas

    you can easily check if one of those is the problem simply creating a new user for PROD_Databasename and using it in connectionstring.

    another way is to execute

    exec sp_helpuser
    

    in both databases (PROD and TEST) and see if the username “umbraco_user” is listed.

    Anyway it is not a good practice to use same login for 2 different users:

    https://dba.stackexchange.com/questions/16374/is-there-any-benefit-to-having-one-sql-server-login-for-multiple-users

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

Sidebar

Related Questions

Yes, I know the title sounds a little suspicious. I will try to explain
Yes, the problem is with a library I'm using, and no, I cannot modify
Yes, this is as stupid a situation as it sounds like. Due to some
I have the famous error address already in use because I have no check
Yes, I have searched and tried many techniques, but nothing seems to work. Here
Yes, I want to use GIMP to create a transparent image with some text
Yes, I know this question has been asked before, but I can't find an
Yes I have a project that I'm working on in NetBeans 7.1 and I
Yes, I know this question has been asked a lot of times, but I
Yes, the only question is whether I'm doing it correct or not. And maybe

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.