Situatie
Mai jos este o procedura ce returneza pe un server MSSQL Server toate procedurile ce au fost modificate in ultimele x zile, unde x este parametru al procedurii.
Solutie
create procedure ProcModif
@zile int
as
select
[object_id] as id,
name,
modify_date as DataUltimaModificare
from sys.procedures
where
CONVERT(date, modify_date) >= DATEADD(dd, -@zile, CONVERT(date, getdate()))
order by 3 desc
Leave A Comment?