Can we execute a stored procedure inside a trigger?
Answers were Sorted based on User's Feedback
Answer / uttam singh rawat
Yes , we can execute the proc inside the trigger
exce proce_name(param,param1)
| Is This Answer Correct ? | 35 Yes | 5 No |
Answer / mohd masood siddiqui
Yes, we can call a stored procedure.
SQL doesn't have a row trigger. Triggers fire once per
statement, not per row. Hence it's not recommended to have
triggers call procedures that have to execute one row at a
time. It's slow.
| Is This Answer Correct ? | 13 Yes | 3 No |
Answer / sql2000
The question is asking for if a SP can be executed from
within a trigger. In MS SQL 2000 have executed and this is
possible.
| Is This Answer Correct ? | 9 Yes | 3 No |
Answer / reva ram sahu
Triger are executed automatically so we can't call them
within a stored procedure or within a function they are
executer explicitly when any DML command take place and also
fire in case of sql server 2005 whenere there is any DDL
command such as create table/proce or alter table/proce
| Is This Answer Correct ? | 4 Yes | 11 No |
Answer / swetha
No you can't call stored procedure inside triggers.
| Is This Answer Correct ? | 11 Yes | 29 No |
Answer / digambar patil
no, we cannot execute stored procedure in trigger.
| Is This Answer Correct ? | 2 Yes | 20 No |
Where do you think the users names and passwords will be stored in sql server?
What is a trace frag?
Explain the difference between function and stored procedure?
how to get the rowid/rownumbes of a table in sqlserver
What are the type of Indexes? which one is best, why?
What is the recursive stored procedure in sql server?
What are user defined datatypes and when you should go for them?
What do you mean by an execution plan? How would you view it?
can you anybody tell me the how can you restore the master database. while migraion(one server to onther server)?
Can we check locks in database? If so, how can we do this lock check?
What is a cube? : sql server analysis services, ssas
What is acid properties?
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)