Differences between functions and stored procedures?

Answer Posted / avinash

1. Functions can used with Select statement
SP are not
2. If we have a syntax error or bug in SP it ignore it at
execution. In case of Function it won't.
3. Function should return atlease one value.
SP may or maynot return values.
4. Function cannot include in other function.
We can execute one SP in other.

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If I delete a template from the list in sql studio, will it be deleted from the hard disk? : sql server management studio

558


What are key constraints?

515


What is a trigger in sql server?

532


What is stored procedures?

546


what is bit datatype and what's the information that can be stored inside a bit column? : Sql server database administration

538






Do you know what are different types of replication in sql server?

508


What is the ‘fillfactor’?

565


How retrieve field names from the table in SQL through JAVA code?

1403


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

570


Is it true that rules do not apply to data already existing in a database at the time the rule is created?

561


What is the difference between functions and stored procedures?

616


What do you mean by sql server 2005 express management tools?

788


What are indexes in ms sql server?

551


How many types of dimensions are there and what are they? : sql server analysis services, ssas

563


Can we use where clause with group by?

518