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

Can you explain what is the use of custom fields in report?

589


How do I repair damaged sql server mdf file database? In previous day my mdf file has got damage due to unknown reasons then I used dbcc chekcdb command but it failed, MDF file is important for me, I don’ know that how to get back mdf file data. Please anyone suggest me?

1287


What does the automatic recovery do?

566


What are the system database in sql server 2008?

566


How to change server name in sql server?

551






Suppose you want to implement the following relationships while designing tables. How would you do it?a.) One-to-oneb.) One-to-manyc.) Many-to-many

510


Does partitioning ssd reduce performance?

477


What is normalization and what are the advantages of it?

508


Explain what you mean by 3 tier architecture.

615


How to find Duplicate Records In table?

579


Explain an automatic checkpoint

552


How to create a trigger for insert only?

585


Explain the various types of concurrency problem?

687


What are the advantages of using stored procedures?

528


What is snapshot report?

127