Cómo saber cuales procedimientos almacenados se modificaron recientemente

0
6314
SQL Server

Cuando se trabaja en una base de datos en la cual varios desarrolladores tienen acceso y modifican objetos, en algunos casos podría ser conveniente saber cuales objetos o procedimientos almacenados se modificaron recientemente en SQL Server.

Con este script podremos ver en orden descendente los objetos que fueron modificados, en este caso solo muestra los procedimientos almacenados, pero le puedes modificar el type para que también te muestre otros objetos.

SELECT TOP(10) 
           [name], [object_id], [create_date], [modify_date]
   FROM sys.all_objects 
 WHERE [type] = 'P' AND [object_id] > 0
 ORDER BY [modify_date] DESC
SQL Server MERGE MERGE in SQL Server for Insert, Delete and Update with two tables - Practical example using MERGE to synchronize two tables, Insert, Update and Delete in a single…

DEJA UNA RESPUESTA

Por favor ingrese su comentario!
Por favor ingrese su nombre aquí