nerdexam
Microsoft

70-457 · Question #36

You develop three Microsoft SQL Server 2012 databases named Database1, Database2, and Database3. You have permissions on both Database1 and Database2. You plan to write and deploy a stored procedure…

The correct answer is B. EXECUTE AS OWNER. stored-procedure-on-linked-server/

Implement and Maintain Security

Question

You develop three Microsoft SQL Server 2012 databases named Database1, Database2, and Database3. You have permissions on both Database1 and Database2. You plan to write and deploy a stored procedure named dbo.usp_InsertEvent in Database3. dbo.usp_InsertEvent must execute other stored procedures in the other databases. You need to ensure that callers that do not have permissions on Database1 or Database2 can execute the stored procedure. Which Transact-SQL statement should you use?

Options

  • AUSE Database2
  • BEXECUTE AS OWNER
  • CUSE Database1
  • DEXECUTE AS CALLER

How the community answered

(25 responses)
  • A
    12% (3)
  • B
    76% (19)
  • C
    8% (2)
  • D
    4% (1)

Explanation

stored-procedure-on-linked-server/

Topics

#EXECUTE AS#cross-database permissions#stored procedures#ownership chaining

Community Discussion

No community discussion yet for this question.

Full 70-457 Practice