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

What is an expensive query?

528


What does the on delete cascade option do?

541


Explain full-text indexing?

508


Who developed sql server?

522


What are user-defined functions (udfs) in sql server?

558






What are data driven subscriptions?

79


How do I delete a sql server database?

538


Can you please explain the difference between function and stored procedure?

536


Find first and last day of current month in sql server

592


What is the bookmark lookup and rid lookup?

564


What is the use of keyword with encryption. Create a store procedure with encryption?

574


How to find the version of sql server? : sql server database administration

621


Explain differences between web edition and business edition?

103


How to test subquery results with the exists operator?

553


Is mysql better than sql server?

532