adspace


diffrence between function and procedure

Answer Posted / srinivas k

Function should always return a value, where as Store Proc
may or may not return values.
Functions can be part of DML statements, where SP cannot be.
SP are precompiled and functions are not.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Equi join and non equi join is possible with sql server?

1134


How to remove duplicate rows from table except one?

1087


Can we do dml on views?

1035


What is the primary use of the model database?

1147


How do I find query history in sql server?

1022


List the ways in which dynamic sql can be executed?

1085


What are the pros and cons of putting a scalar function in a queries select list or in the where clause?

1298


What is sql server query analyzer?

1126


What is the difference between for xml raw and for xml auto?

1113


What is a view in sql?

1039


What is in place upgrade in sql server?

1125


You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

1212


Disadvantages of the indexes?

1222


How can you append an identity column to a temporary table?

1069


What kind of problems occurs if we do not implement proper locking strategy?

1499