Microsoft
70-458 · Question #48
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. storedprocedure-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
(38 responses)- A8% (3)
- B74% (28)
- C3% (1)
- D16% (6)
Explanation
storedprocedure-on-linked-server/
Topics
#EXECUTE AS#cross-database permissions#stored procedures#ownership chaining
Community Discussion
No community discussion yet for this question.