Difference between Function and Procedure-in general?
Answer Posted / dharmendra nonia
Function and Stored Procedure both are precompiled objects
in databases but there is some difference between UDFs and
Stored Procedure such as--
1)Function Must be return at least one value but stored
procedure may or may not.
2)We can use Function for only data manipulation but stored
Procedure is used to Manipulation as well as Modification
of Data on tables.
3)We can't use DML statements inside Function but In stored
Procedure, we can use DML statements.
4)In stored Procedure, we can pass INPUT and OUTPUT
parameter but Function accept only input parameter and
return a value.
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
What do you do in data exploration
Explain about analysis services?
How to count groups returned with the group by clause in ms sql server?
can a table be moved to different filegroup? : Sql server administration
How to copy data from one table to another table?
What is conditional split?
Can I use sql azure as a backup with log shipping or database mirroring?
What is the difference between Stored Procedures and triggers?
What is shrink log file?
How is a full-text index updated?
What are the differences between stored procedure and view in sql server?
What functions can a view be used to performed?
What is it’s similarity with sql server?
Can sql servers linked to other servers like oracle?
What is isolation levels?