怎么样用sql 代码 select 某个出存储过程的所有代码
怎么样用sql 代码 select 某个出存储过程的所有代码
怎么样用sql 代码 select 某个出存储过程的所有代码

解决方案 »

  1.   

    SP_HELPTEXT 过程名
    没加密过的
      

  2.   

    SELECT text FROM syscomments s WHERE id=object_id('Pname')
      

  3.   

    select object_name(id) spname,text from sys.syscomments where id=OBJECT_ID('sp_test')也可以用这个语句(2005以上)。
      

  4.   

    select b.text as sql from sysobjects a,syscomments b where a.xtype ='P' and a.id = b.id超过8000个字节就不行了
      

  5.   

    SQL codeselect b.text as sql from sysobjects a,syscomments b where a.xtype ='P' and a.id = b.id
    超过8000个字节就不行了 
     
    不错
      

  6.   

    go
    sp_helptext 'sp_ActiveDirectory_SCP'
      

  7.   

    sp_helptext
    不是只能是没有加密过的store procedure.
      

  8.   

    sp_helptext
    不过只能是没有加密过的store procedure.