這樣只能查到存儲過程開始傳入的參數,內部定義的參數就無法查出select DISTINCT object_Name(id) from syscomments
where id in (select id from sysobjects where xtype='P')
and CharIndex('@Empid', Text)>0這段代碼應該更準確