1、查看表结构或存储过程
exec sp_help '表名或存储过程名'
exec sp_helptext '存储过程名'
2、查询存储过程调用的相关的表
select p.name from sys.procedures p with(nolock)join sys.sql_modules m on m.[object_id]=p.[object_id]where m.definition like N'表名'