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 a deadlock and what is a live lock?

580


How to rename databases in ms sql server?

629


Explain SSRS Architecture?

139


Is candidate a key?

536


What is the use of nvl work?

565






What are three ways you can use an identity value inside a trigger? Why would you prefer one way over another?

550


What is difference between drop truncate and delete?

558


What is exporting utility?

544


as a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this? : Sql server administration

538


Is it possible in sql table to have more than one foreign key?

618


How to find out what is the default collation in a database?

634


Describe how to use linked server?

547


How many database files are there in sql server 2000?what are they?

583


What is report snapshot?

99


What is function of ROLLUP ?

658