What is a trigger?
Answers were Sorted based on User's Feedback
Answer / sathish kumar.t
Trigger is the collection of T-SQL statements, which is
activated based on certain actions. Trigger is fired, when
any of one DML statements will occur..
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / raji
Triggers are basically used to implement business rules.
Triggers is also similar to stored procedures.
The difference is that it can be activated when data is
added or edited or deleted from a table in a database.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / jerry joseph
Triggers are a special type of Stored procedure which
execute automatically when a triggering action like INSERT,
UPDATE or DELETE occurs.
INSTEAD OF trigger
- executes automatically in place of triggering actions like
INSERT, UPDATE or DELETE
- executes before PK, FK constrains are checked
AFTER trigger
- executes automatically after the statement that triggered
it completes
- executes after constrains are checked
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / jerry joseph
Trigger gets executed when an INSERT UPDATE or DELETE occurs
2 types of triggers are INSTEAD OF triggers and AFTER triggers
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / vimal
Trigger is a special type of store procedure.when we are going
to insert,update,delete table automatically trigger is invoked
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / subodh devarde
Triggers are special type of stored procedure which execute automatically whenever any changes are occured in table in database after using insert update ,delete command.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / channu mamane
triggers are special type of stored procedure which are
automatically invoked at the time of modifyibg tables
| Is This Answer Correct ? | 0 Yes | 1 No |
Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure?
Hi SQL gurus, i am working for an MNC... My team is having a problem in sql server. when user slects date prompts from jan 1st to april 30, it should display all months data like : jan aa feb bb mar cc but when it comes to april its taking data like : jan aa feb bb mar cc apr dd...and so on means its taking data again from jan to april which we dont want. we want the data only april month as we are getting jan, feb and mar... can any one write the code to relsove the issue please would be greatful if you can send to shiva_sans@yahoo.co.in and also please send your email also ...so that we will be in touch for any kind of queries ... Thanks a lot in Advance !!!
If you are working on a SQL database and if suddenly a developer changes the code and your queries results start giving errors,how will you check using a T-SQL query (on system tables) that what has changed in the database.
What is the sql case statement used for? Explain with an example?
How can you check the version of sql server?
Using the customer, and order table in northwind database, please write a query to produce xml?
What is difference between delete and truncate commands?
There is a table1 with records (1,2,3,4,5,6) and table2 with records (4,5,6,7,8,9).write a query so as to get the result as 1,2,3,4,5,6,7,8,9
Where the sql logs gets stored?
create index myindex on mytable(mycolumn) what type of index will get created after executing the above statement? : Sql server database administration
what is the system function to get current user's user id? : Sql server database administration
What is coalesce and check constraint in sql server?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)