Wht is the difference between stored procedure and trigger

Answer Posted / sujit kumar suman

Store Procedure:-It is a pre-compiled object which stored in
current database.It can't execute automatically.
--create store procedure
create proc procedure_name
as
select command
and then
go

--execute procedure

exec procedure_name

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we store videos inside the sql server table?

515


What is sql or structured query language?

673


What is normalization of database? What are its benefits?

513


What is a matrix in ssrs?

101


What gets stored inside msdb database?

761






How many types of triggers are there?

568


How much does sql server 2016 cost?

524


What is key set driven?

531


What is not null constraint?

614


What will be the value of @@fetch_status if a row that was a part of the cursor resultset has been deleted from the database after the time the stored procedure that opened the cursor was executed?

643


How to create a scrollable cursor with the scroll option?

492


What are the features of Embedded SQL

663


What is the recovery model?

551


How to implement service broker?

520


What is the difference between insensitive and scroll cursor?

576