当我们刚开始接触一些已经成型的项目时,不复杂还好,复杂的话,比如说ERP项目,其中业务逻辑复杂可能会各种存储过程之间来回调用,我们可以用
--查询哪里调用该表或存储过程 select distinct object_name(id) from syscomments where id in (select id from sysobjects where type ='P') and text like '%表名或存储过程名称%'
当我们刚开始接触一些已经成型的项目时,不复杂还好,复杂的话,比如说ERP项目,其中业务逻辑复杂可能会各种存储过程之间来回调用,我们可以用
--查询哪里调用该表或存储过程 select distinct object_name(id) from syscomments where id in (select id from sysobjects where type ='P') and text like '%表名或存储过程名称%'
相关文章: