---
title: "What does REVERT do in SQL Server 2005?"  
description: "What does REVERT do in SQL Server 2005?"  
author: "Sumit Kesarwani"  
published: 2013-12-22  
updated: 2020-09-01  
canonical: https://www.mindstick.com/interview/1852/what-does-revert-do-in-sql-server-2005  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# What does REVERT do in SQL Server 2005?

It restores your previous execution context. If you have changed your execution context with EXECUTE AS, the REVERT statement will restore the last context prior to the EXECUTE AS.

## Answers

### Answer by Sumit Kesarwani

It restores your previous execution context. If you have changed your execution context with EXECUTE AS, the REVERT statement will restore the last context prior to the EXECUTE AS.


---

Original Source: https://www.mindstick.com/interview/1852/what-does-revert-do-in-sql-server-2005

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
