Difference between Triggers and Stored Procedure
Answer Posted / avdhesh yadav
1. Stored Procedure may Return a value but Trigger Not,
2. In Stored Procedure you can pass parameter But in
trigger you can't
3. we explicitly call the Stored Procedure when Trigger are
implicitly
fired
4. you can write a Stored Procedure in Trigger but in a
Trigger you cant
write Stored Procedure.
5. Trigger written on an individual Table or View where
Stored Procedure
is written for an Database
| Is This Answer Correct ? | 29 Yes | 7 No |
Post New Answer View All Answers
Is it true, that there is no difference between a rule and a check constraint?
When does the auto update index statistics feature in sql server turn itself on?q) what specific conditions database should meet, before you can bulk copy data into it using bcp?
What is a bit datatype?
what data regions are and what are the different data regions?
How to check status of stored procedure in sql server?
What is function of ROLLUP ?
How to generate create table script on an existing table in ms sql server?
How does recursive cte works in sql server?
What are different types of raid configurations? : SQL Server Architecture
Tell about MOM Tool(Microsoft Operator Manager)?
How to scale out a federation by Sql statement?
what exactly sql injuction.how to overcome.....
How to specify the collation for a character data type in ms sql server?
What is difference between standardization and normalization?
How to connect to SQL Azure Database by using sqlcmd?