nerdexam
Microsoft

70-432 · Question #67

70-432 Question #67: Real Exam Question with Answer & Explanation

The correct answer is A. USE AdventureWorks;ALTER USER Mary WITH LOGIN = Mary;. See the full explanation below for the reasoning.

Question

You are the administrator of a SQL Server 2008 with two instances. The two instances are respectively named InstanceA and InstanceB. There is a database named Dworks on InstanceA. You move the Dworks database to InstanceB. A user use a SQL Server login named Mary to access the database on InstanceA with the password "Tk@87#34". On InstanceB, you create the same SQL Server login. The user tries to use the SQL Server login Mark to access the Dworks database on InstanceB. But the user gets an error message, according to the indication of the message, the access to the Dworks database has been denied. You have to make sure that the user can access the Dworks database on InstanceB successfully. On InstanceB, which Transact-SQL statements should you execute?

Options

  • AUSE AdventureWorks;ALTER USER Mary WITH LOGIN = Mary;
  • BUSE AdventureWorks;ALTER LOGIN Mary ENABLE;
  • CUSE AdventureWorks;ALTER LOGIN Mary WITH PASSWORD = "Tk@87#34" UNLOCK;
  • DUSE AdventureWorks;ALTER LOGIN Mary WITH DEFAULT_DATABASE = AdventureWorks;

Community Discussion

No community discussion yet for this question.

Full 70-432 Practice