Stored Procedure :-
1.) Can take input \output parameter.
2.) can return zero,single or multiple rows.
3.) can use DML,DDl staements.
4.) can use non-deterministic function like getdate()
5.) use transaction
6.) use try-catch block
7.) use function inside stored procedure
Function :
1.) use only input parameter.
2.) must return a value.
3) use only DDL staement.
4.) cannot use try-catch block
5) cannot use transaction
6) cannot use stored procedure inside function