查询所有存储过程:select * from sysobject where type='p';
根据名字查询存储过程:select * from sysobject where type='p' and name='过程名';
查询定义过程:
SELECT definition FROM sys.sql_modules WHERE object_id =(select id from sysobjects where type='p' and name='过程名');
查询所有存储过程:select * from sysobject where type='p';
根据名字查询存储过程:select * from sysobject where type='p' and name='过程名';
查询定义过程:
SELECT definition FROM sys.sql_modules WHERE object_id =(select id from sysobjects where type='p' and name='过程名');