http://blog.chinaunix.net/uid-23577393-id-1751983.html To count how often any pattern occurs in the current buffer use the substitutecommand and add the 'n' flag to avoid the substitution. The reported numberof substitutions is the number of items.
原文地址:http://www.cnblogs.com/minideas/archive/2009/10/29/1591891.html --1.查看所有存储过程与函数 exec sp_stored_procedures 或者 select * from dbo.sysobjects where OBJECTPROPERTY(id, N'IsProcedure') = 1 order by name --2.查看存储过程的内容 select text
--1.查看所有存储过程与函数 exec sp_stored_procedures 或者 select * from dbo.sysobjects where OBJECTPROPERTY(id, N'IsProcedure') = 1 order by name --2.查看存储过程的内容 select text from syscomments where id=object_id('存储过程名称') -- 或者用 sp_helptext