通过特殊字符查询所在表 或 存储过程
生活随笔
收集整理的这篇文章主要介绍了
通过特殊字符查询所在表 或 存储过程
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
1.查询特殊表达式所在的存储过程:
select * from sys.sql_modules where definition like '%1900017%' and object_id in (select object_id from sys.objects where type='P')
2.查询一个表被哪些存储过程使用:
exec sp_depends 'ffunit'
3.通过表找找字段:
select name as 'Column_name' from syscolumns where id
= (select id from sysobjects where id = object_id('')) order by colid
4.通过字段查找表:
select * from sysobjects where id in
(select ID from syscolumns WHERE name ='machineid')
转载于:https://www.cnblogs.com/lanniao/archive/2009/10/09/1579439.html
总结
以上是生活随笔为你收集整理的通过特殊字符查询所在表 或 存储过程的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: ArcGIS Server for Si
- 下一篇: web.config文件中的特殊字符处理