select name as proc名称
from sysobjects
where xtype='P'

解决方案 »

  1.   

    select name from sysobjects where xtype = 'P'
      

  2.   

    select name from sysobjects where xtype = 'P'
      

  3.   

    select name from sysobjects where xtype='P'orselect name from sysobjects where type='P'
      

  4.   

    查看和表关联的存储过程等对象:exec sp_depends 表名
      

  5.   

    存储过程针对具体数据库的,比如想查数据库pubs里所有存储过程
    select name from pubs.dbo.sysobjects where xtype='P'
    如果省略了pubs.dbo. 则默认查当前数据库的所有存储过程
      

  6.   

    查看存储过程内容:exec sp_helptext 存储过程名
      

  7.   

    select name from sysobjects where type='p'
    select name from sysobjects where type='p'"然后怎么对找出这些存储过程是否更新某个字段呢?"这句话读着怎么有点拗口???
      

  8.   

    就是怎么查某个字段被哪些存储过程更新了?sp_depends 存储过程名称 就可以得到某个字段被这个存储过程更新
    以上很多方法都找出了所有存储过程的名称
    接着怎么知道某个字段对被哪些存储过程做了更新操作
      

  9.   

    select * from sysobjects where xtype='p'
      

  10.   

    exec sp_depends 表名
    再把查出的所有SP打開一個一個看吧