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

The Archive Base Latest Questions

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

I am moving a SQL Server 2005 database to a new server using a

  • 0

I am moving a SQL Server 2005 database to a new server using a backup. I was able to restore the backup to a new location without mishap.

The problem is, I have a number of Sql Server users who were connected to a login on the old server. Those logins were not there on the new server — so I added them in (with the same passwords).

However, the SQL Server users are not automatically updated to those logins. In fact, in ManagementStudio, when I look at the properties of a user, it says the username is “without login”, and the radio buttons are grayed out so I can’t choose another one.

I tried this:

USE GlobalData --(the name of the database)
GO
ALTER USER Centration WITH LOGIN = Centration; --(both user and login are Centration)

and I get an error:

Msg 102, Level 15, State 1, Line 1
Incorrect syntax near 'LOGIN'.

How can I do this?

  • 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-23T19:02:55+00:00Added an answer on May 23, 2026 at 7:02 pm

    You can try this:

    In management studio, select your database and then execute this command:

    sp_change_users_login 'report'
    

    This will produce a list of Users and Logins that are not mapped, then you can run the following command multiple times to map them; Run it per result that came back on the previous query:

    sp_change_users_login 'Update_One', 'Centration', 'Centration';
    go
    sp_change_users_login 'Update_One', 'Centration2', 'Centration2';
    

    etc etc.

    Hope this helps.

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

Sidebar

Related Questions

We have a common problem of moving our development SQL 2005 database onto shared
I am using Visual Studio 2005, Sql Server 2005, C#, ADO.NET. We have a
Before moving to the SQL Server 2005 cluster we had on avarage 60% CPU
We have a Sql Server 2005 Standard Edition running on a Production website. We'd
We are currently using SQL Server 2000 but will soon be moving to 2008.
I am using MS SQL Server 2005 as DBMS for my WinForms App. Data
I am moving data from an old table to a SQL server new version
I am working on moving a database from MS Access to sql server. To
I have an established SQL Server database setup. I then generated an Entity Framework
I have a SQL Server 2008 database (call it productionDB) that contains data and

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.