what is the difference between procedure and function.

Answer Posted / saurav kumar

1) Inside Stored procedure we can write functions but
inside function we can't write Stored procedures.

2) Stored proedure may or may not return a value but
function must return a value.

3) Stored Procedures can be called independently using exec
keyword ,Function are called using select statement.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can change procedure in sql server?

737


What is query optimization process?

734


Explain “row_number()” in sql server with an example?

745


Why do we use stored procedures in sql server?

693


how you can move data or databases between servers and databases in sql server? : Sql server administration

727


How many types of relations are there between dimension and measure group? : sql server analysis services, ssas

960


Explain different types of Normalization.

1268


Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting is possible?

796


What are the disadvantages of indexes?

721


optimization techinques

2428


How you trouble shoot when any job fails

1690


What do you mean by 'normalization'?

808


Define outer join?

760


What is replication and database mirroring?

804


What extended events?

791