Sql Server常用数据库函数小结
查询验证存储过程是否存在
SELECT name FROM sysobjects WHERE xtype = 'P' and name = '{0}'
-----------------------------------------------------------------------------------
根据存储过程名称获取存储过程方法体
SELECT OBJECT_DEFINITION(OBJECT_ID('{0}'))
-----------------------------------------------------------------------------------