Difference between Triggers and Stored Procedure
Answer Posted / bed singh
1. Triggers can only be implemented on tables or views but
Stored Procedure in independent code that can be specific
to database.
2. Triggers are automatically run but stored procedures are
not automatically run and they have to be called explicitly
by the user.
3. we can write a stored procedure within a trigger but
cannot write a trigger within a stored procedure.
4. Trigger is attached to table or view and is fired only
when an INSERT, UPDATE, and/or DELETE occurs, while a
stored procedure executes at any time when it is called.
| Is This Answer Correct ? | 75 Yes | 9 No |
Post New Answer View All Answers
What are drilldown reports?
What are the types of indexes?
What are the advantages dts has over bcp?
1 01 101 01010
what is the Ticketing tool used in Wipro technologies at Bangalore...???
What are the restrictions applicable while creating views? : SQL Server Architecture
How do I view a trc file?
What does asynchronous call backs means?
how can u get last observation in an unknown dataset ?
What is use of dbcc commands?
How to connect sql server management studio express to sql server 2005 express?
Does full backup break log chain?
How many columns can exist together per table?
Explain about service Broker functions?
Do you know what guidelines should be followed to help minimize deadlocks?