1
Answer

i want that database name in which changes done in SP .

Photo of krunal pande

krunal pande

7y
224
1
Hi team,
 
i have one sp in all databases having name  '[TNA].[ATTENDANCE_MAIL_ALERT_SUMMARY_DETAILS_TO_EMPLOYEE]' 
 
but in some databases changes done in sp i want that database name in which changes done.
 
Please look into this and revert .
 
Thanks & Regards,
Krunal Pande 

Answers (1)

2
Photo of Nitin Sontakke
NA 11.7k 2.2k 7y
You can use following script: 
  1. use [master]  
  2. go  
  3.   
  4. execute sp_MSforeachdb N'use [?]; select db_name() [database], name, create_date, modify_date from sys.objects where name = ''ATTENDANCE_MAIL_ALERT_SUMMARY_DETAILS_TO_EMPLOYEE'''