stored procedure:
1.return more than one output value
2.We can call the function in the stored procedure
3.Allows select as wel as the DML statement like insert,update and delete
4.try catch is applicable
Function:
1.Must return a single value.
2.We cant call the stored procedure inside the function
3.Allows only select statement
4.No try catch is allowed