方法1:最简单的,右键单击要查看的存储过程,选择“修改”;
方法2:
- SELECT definition FROM solar.sys.sql_modules
- WHERE [object_id]=(OBJECT_ID(N'Delete_ErrorOrder'));
方法3:
- SELECT OBJECT_DEFINITION (OBJECT_ID(N'Delete_ErrorOrder'));<img src="" alt="" style="font-family: Arial, Helvetica, sans-serif;">
方法4:
- EXEC sp_helptext 'Delete_ErrorOrder'
方法1和方法4可以查看完整的存储过程定义,方法2和方法3仅显示部分。