---
title: "What is a Trigger?"  
description: "What is a Trigger?"  
author: "Manish Kumar"  
published: 2017-05-23  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/23253/what-is-a-trigger  
category: "mssql server"  
tags: ["sql server"]  
reading_time: 1 minute  

---

# What is a Trigger?

**Triggers** are used to execute a batch of SQL code when insert or update or delete commands are executed against a table, it works like an event which automatically calls after or before. It automatically triggered or executed when the data is modified. Trigger can be executed automatically on insert, delete and update operations.\

## Answers

### Answer by Manish Kumar

**Triggers** are used to execute a batch of SQL code when insert or update or delete commands are executed against a table, it works like an event which automatically calls after or before. It automatically triggered or executed when the data is modified. Trigger can be executed automatically on insert, delete and update operations.\


---

Original Source: https://www.mindstick.com/interview/23253/what-is-a-trigger

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
