Hi,
I have a user defined function which is used in many stored procedures which will return me some value. If it possible for me to add a new optional parameter to the same.
If I don't pass any value it should be null and if I pass some value it should take it. I don't want to go and change all the stored procedures to do so.
Example code
dbo.CalculateAverageForUser(int userid)
Can I use dbo.CalculateAverageForUser(int userid, type NVARCHAR(10) = NULL)