SQL SERVER2000教程-第七章 Transact-SQL编程 第八节 提取存储过程的参数列表

1、利用系统表提取存储过程的参数列表
select a.name as parameter,b.name as type,a.length,a.xscale,a.isoutparam as parameter_output,
       case when b.scale is null then 0 else b.scale end as scale
  from syscolumns a left join systypes b   on a.xtype=b.xtype
 where a.id=(select id from sysobjects where name='IUD_CHTKD')--IUD_CHTKD是存储过程的名称

2、利用系统存储过程表提取存储过程的参数列表
SP_HELP 'IUD_CHTKD'--IUD_CHTKD是存储过程的名称

你可能感兴趣的:(存储过程,数据库,参数,提取,休闲)