SQL SERVER acquire table used in which the stored procedure

1. Obtain a particular table in which to use the stored procedure

select distinct object_name(id) from syscomments where id in
(select object_id from sys.objects where type ='P') and text like'%tableName%'

2. Obtain a particular table creation time

select * from sys.tables where name ='tableName '  order by create_date desc

 

Guess you like

Origin www.cnblogs.com/xy0710/p/11727510.html