what is a stored procedure and trigger?

Answer Posted / sandeep

First of all both are precompiled sql statements stored at
database server.

1. Stored procedures can return values to the caller
whereas triggers cant.

2. we cant call a trigger directly becos it is called by
the database server on an event(automatically raised on
insert,update,delete statements).

3. triggers can access datas from outside world(outside of
the Database).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mscorsvw.exe - process - microsoft .net framework ngen?

685


What are system databases into sql server (2005/2008)?

751


How to assign new column names in a view?

663


Describe triggers features and limitations?

679


Explain Geography datatype in SQL Server

803






How to turn off warning messages during php execution?

719


what are the different ways of moving data/databases between servers and databases in sql server? : Sql server database administration

702


In case you have filters in your report, when filters will be applied in cached report instance?

91


What is the need for indexing?

659


What do you mean by a Composite primary key?

759


What do you understand by hotfixes and patches in sql server?

689


What is apply operator in sql?

757


How to modify existing triggers using "alter trigger"?

698


Explain microsoft sql server functions?

764


Define normalisation?

863