标签:
--查数据库中所有的存储过程
select * from sys.procedures
--------------------
--查数据库中所有的存储过程
select o.name from syscomments cm inner join sysobjects o on o.id=cm.id where xtype =‘p‘ group by o.name order by o.name
--------------------------
select o.id,o.xtype,o.name,cm.text from syscomments cm
inner join sysobjects o on o.id=cm.id
where xtype =‘p‘
order by o.xtype,o.name,cm.text
------------------------------
-------------
--所有表的包含哪些列以及列的类型
select o.name, c.name,t.name,c.length from syscolumns c
inner join systypes t on c.xtype= t.xtype
inner join sysobjects o on c.id= o.id
where o.xtype=‘u‘
order by o.name, c.name,t.name
-------------------------------
--根据存储过程名称查内容
sp_helptext @objname =‘AddtionalDebet‘
标签:
原文地址:http://www.cnblogs.com/yangjinwang/p/4453088.html