Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 300 个存储过程。
我想知道是否包含注释掉的字符串。
可能吗 ?
例如:我想搜索是否--my.dboTbls被评论。
--my.dboTbls
你可以试试:
Select p.* From sys.procedures p Where Object_Definition(p.Object_Id) Like '%--my.dboTbls%'