exam questions

Exam 70-462 All Questions

View all questions & answers for the 70-462 exam

Exam 70-462 topic 1 question 30 discussion

Actual exam question from Microsoft's 70-462
Question #: 30
Topic #: 1
[All 70-462 Questions]

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?

  • A. DROP USER [User1]; CREATE USER [Corpnet\User1] FOR LOGIN [Corpnet\User1]; ALTER ROLE [db_owner] ADD MEM3ER [Corpnet\User1];
  • B. ALTER SERVER RCLS Isysadmin] ADD MEMBER [Corpnet\User1];
  • C. ALTER USER [Corpnet\User1] WITH LOGIN [Corpnet\User1];
  • D. ALTER ROLE [db owner] ADD MEMBBR [Corpnet\User1]; C
Show Suggested Answer Hide Answer
Suggested Answer: Explanation 🗳️
Reference:
http://msdn.microsoft.com/en-us/library/ms176060.aspx

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
XactAbort
Highly Voted 5 years, 6 months ago
A is not the correct answer because do not know if User1 was originally in the db_owner role. Correct answer is C
upvoted 6 times
...
Fame
Most Recent 4 years, 10 months ago
C. ALTER USER [Corpnet\User1] WITH LOGIN [Corpnet\User1];
upvoted 1 times
...
corpo
4 years, 11 months ago
C. ALTER USER [Corpnet\User1] WITH LOGIN [Corpnet\User1];
upvoted 2 times
...
Ayu2212
5 years ago
c is the correct answer Alter user[corpnet\user
upvoted 4 times
...
Varad
5 years, 8 months ago
A. DROP USER [User1]; CREATE USER [Corpnet\User1] FOR LOGIN [Corpnet\User1]; ALTER ROLE [db_owner] ADD MEM3ER [Corpnet\User1];
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...