Schema from stored procedure

前端 未结 5 1492
迷失自我
迷失自我 2020-12-21 10:30

I have a procedure, I want to read schema of the procedure. To retrieve view schema I use the query shown here. Same way I want to get schema of stored procedure. How to get

5条回答
  •  一生所求
    2020-12-21 11:10

    I am not getting your question clearly I think this would work with you

    Select * 
    from sys.objects 
    where type='p' and name = (procedure name)
    

    Replace your query with this and it will work fine

提交回复
热议问题