difference between function and procedure

Answer Posted / ramya gurrala

Functions:1)Do calculations mostly.
2)Must return value.
3)Calling methods.
4)Function can stand alone.


Procedure:1)Do actions mostly.
2)May or may not return value(the return method is not same as function method).
3)Calling methods.
4)Procedure can not stand alone.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to encrypt data between dialogs?

574


What is a group function explain with an example?

523


What are the properties of primary key?

517


Explain what is scheduled job and how to create it?

546


Which joins are sql server default?

512






Why should we go for stored procedures? Why not direct queries?

574


What is a full text index?

497


What is 'write-ahead log' in sql server 2000 ?

627


can an order by clause be used in a creation of a view?

695


What is default port number for sql server 2000?

598


How to create an index on a view?

586


Can a cursor be updated? If yes, how you can protect which columns are updated?

520


What is side by side migration in sql server?

541


How to return the top 5 rows from a select query in ms sql server?

595


Delete duplicate rows without using rowid.

1074