This function is used to get the unused stored procedure list for which doesn''t used for given noofdays.
Here are some samples :
--Examples
select * from dbo.fn_get_unused_procedure_noofdaysago(0)
where ProcedureName = 'Your Procedure Name'
--Other Examples
--Complete lists
select * from dbo.fn_get_unused_procedure_noofdaysago(0)
--Procedure doesn't used for more than or equals to last 7 days
select * from dbo.fn_get_unused_procedure_noofdaysago(7)
--Procedure doesn't used for more than or equals to last 30 days
select * from dbo.fn_get_unused_procedure_noofdaysago(30)
--Procedure doesn't used for more than or equals to last 100 days
select * from dbo.fn_get_unused_procedure_noofdaysago(100)
--Procedure doesn't used for more than or equals to last 180 days (approx 6 months)
select * from dbo.fn_get_unused_procedure_noofdaysago(180)
--Procedure doesn't used for more than or equals to last 365 days (approx 1 year)
select * from dbo.fn_get_unused_procedure_noofdaysago(365)
Based on your application functionality, and passing the appropriate value to this function we can get the unused procedure list for your database.
Regards,
Vignesh Arulmani