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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:12:19+00:00 2026-05-23T07:12:19+00:00

I have downloaded database and attached it to my local sql server, however I

  • 0

I have downloaded database and attached it to my local sql server, however I can’t seem to change the password of one the existing user’s on the db.

Using the following command:

ALTER LOGIN [NotificationsUser] WITH PASSWORD = 'password';

I get the error:

Msg 15151, Level 16, State 1, Line 1
Cannot alter the login
‘NotificationsUser’, because it does
not exist or you do not have
permission.

Is this possible?, what access permissions do I need to change user permissions anyway ?

  • 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-23T07:12:19+00:00Added an answer on May 23, 2026 at 7:12 am

    If you’ve attached this database to your local SQL server then you’ll need to do a couple of things:

    1. If you haven’t already done so, create user logins on your SQL server to match the ones that exist in the attached database. It’s simpler to do this before attaching the database. But it can be done after the DB has been attached.

    2. Because the SID’s of the users in the newly attached database won’t be the same as the newly created logins you’ll need to resolve this using the sp_change_users_login stored procedure. The database user’s are in effect orphaned.

    For example if you have:

    SQL Login: bob Attached database user: bob

    Open a new query in SQL Management Studio for the attached database then run:

    sp_change_users_login @action='report'
    

    If you have “orphaned” users in your database then you’ll see a result set that looks like:

    UserName  UserSID
    bob       0x57F6DFA5D5D7374A97769856E7CB5610
    

    To reconnect this user to a SQL login execute:

    sp_change_users_login @action='update_one', 
                          @loginname='bob', 
                          @usernamepattern='bob'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 SQLite databases, one downloaded from a server ( server.db ), and
I have a mysql database I have downloaded from my online server and trying
i have downloaded whole database from geonames.org and imported all countries into mysql. i
I have a basic/simple need to create a pipeline transfer process from one SQL
I have downloaded the MySQL 5.2.5.1 version. I need to create the database and
i am using mysql as my database server. I want to have a backup
Basically when I have an application in XCode and I change the sqlite/coredata database
have downloaded Orca to edit an MSI file. I want to remove some banner
I have downloaded a font that looks less than desirable if it is not
I have downloaded the silver light from this http://www.microsoft.com/silverlight// I need to use this

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.