Find recent object changes in SQL Server Database

前端 未结 3 1587
闹比i
闹比i 2021-02-03 10:31

I\'ve added and modified several (new and existing resp.) tables and stored procs, for a particular d

3条回答
  •  灰色年华
    2021-02-03 10:56

    Query the sys.objects table to find the objects that changed and filter by modify_date and type; U = User table, P = Stored procedure.

    select * 
    from sys.objects 
    where (type = 'U' or type = 'P') 
      and modify_date > dateadd(m, -3, getdate()) 
    

    This approach will tell you what objects have changed, but not the specific changes.

提交回复
热议问题