what is the difference between trigger and storedprocedures
Answers were Sorted based on User's Feedback
Answer / bhanu verma
Actually triger in action which is performed automatically
before or after a event occur and stored procedure is a
procedure which is executed when the it is called.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / monika nargotra
triggers can't accept parameters from users whereas stored
procedures can accept parameters from users.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / srikanth
Trigger will fire when the condition arises but the stored
procedure will execute when the user or main programme
wants its need.
triggers can't accept parameters from users whereas stored
procedures can accept parameters from users.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nandkumar
There are bascis 3 difference between them
1> trigger invokes implicitly while we need to invoke
procedure explicitly.
2> We cant pass values from user to trigger but we can pass
values into procedure.
3> Trigger cant return value procedure can return value.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sharma.dharmpal
One more difference is that Trigger is compiled code where
as stroed procedure is not.
| Is This Answer Correct ? | 4 Yes | 16 No |
Answer / sam katwal
Both are Same
Triggers are special Stored Producedures which are created
by User whereas Stored Procedures are created by the System.
| Is This Answer Correct ? | 2 Yes | 20 No |
What is the usage of NVL?
7 Answers Infosys, Micro Infotek,
How global cursor can be declare with dynamic trigger ?
how would concatenate strings in mysql? : Sql dba
what are the types of subquery? : Sql dba
what are rollup and cube in t-sql? : Transact sql
Main diff between varray and nested tablea
Can we create non-clustured index on a clustered index ?
discuss about myisam index statistics collection. : Sql dba
Is oracel sql developer written in java?
Is delete faster than truncate?
Does truncate free space?
If i can use sys.check_constraints to display my constraints from my database using sql server 2005, how can i display then if i am using sql server 2000????
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)