1、[code=SQLl]
select * from sys.objects s where s.type='p' and s.name like '%user_id%'
select * from sys.objects s where s.type='p' and s.name like '%user_id%'
[/code]
2、[code=SQ]Lselect name from sysobjects where id in (select id from syscomments where text like '%user_id%')[/code]
3、我用的方法是tasks里把所有存储过程保存出来,然后用nodpad++打开搜索。。。
本文介绍如何使用SQL查询系统对象,筛选出包含'user_id'的存储过程和ID,通过任务管理和文本搜索实现高效检索。

被折叠的 条评论
为什么被折叠?



