when we use function instead of procedure? plz tell me the
situation with ex?

Answer Posted / manoj

Usually procedures are used when some action is to be
performed without retrun value.
Functions are used when some value is to be returned to the
calling enviornment.
You can not use procedure in the select statement however
functions can be used.

Is This Answer Correct ?    30 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Please differentiate between a local and a global temporary table?

579


OPTIMIZATION OF SP,CURSOR,TRIGGERS

2215


Why we use trigger in sql server with example?

517


Benefits of Stored Procedures?

576


What is inline variable assignment?

619






What is use of except clause?

637


How to rename an existing column with the "sp_rename" stored procedure in ms sql server?

562


Can a table have 2 foreign keys?

511


How to grant a permission in ms sql server using "grant execute" statements?

571


What's the information that can be stored inside a bit column?

555


What is difference between rollback immediate and with no_wait during alter database?

589


What is database mirroring?

576


What is table constraint?

547


How can you start sql server in different modes?

515


How do clustered indexes store data?

626