nerdexam
Microsoft

70-457 · Question #166

You are migrating a database named Orders to a new server that runs Microsoft SQL Server 2012. You attempt to add the [Corpnet\User1] login to the database. However, you receive the following error…

The correct answer is C. ALTER USER [Corpnet\User1] WITH LOGIN [Corpnet\User1]. See the full explanation below for the reasoning.

Question

You are migrating a database named Orders to a new server that runs Microsoft SQL Server 2012. You attempt to add the [Corpnet\User1] login to the database. However, you receive the following error message:

"User already exists in current database." You need to configure the [Corpnet\User1] login to be able to access the Orders database and retain the original permissions. You need to achieve this goal by using the minimum required permissions. Which Transact-SQL statement should you use?

Options

  • ADROP USER [User1];
  • BALTER SERVER RCLS Isysadmin] ADD MEMBER [Corpnet\User1];
  • CALTER USER [Corpnet\User1] WITH LOGIN [Corpnet\User1];
  • DALTER ROLE [db owner] ADD MEMBBR [Corpnet\User1];

How the community answered

(36 responses)
  • A
    8% (3)
  • B
    6% (2)
  • C
    83% (30)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 70-457 Practice