Reg sp_helptext

  • Hi all,

    i need a help reg sp_helptext.when we use the sp_helptext command we wiill be getting only the procedure containg the logic we have written. bt i need to get even the grant permissions also from the procedure.for ex i need a command to retreive the procedure along with grant permissions like

    create procedure test

    {

    ----

    }

    GRANT SELECT ON [dbo].[procedure name]TO [web]

    GO

    Please help me out in this issue.would be really helpful.:-)

  • You can try to change this:

    http://www.sqlservercentral.com/scripts/64793/

    Add a join with sys.sql_modules to include the object definition.....

  • HI dmoldovan,

    COuld u plz explain,bcos i tried tat sys_modules but i need it for a particlar exact procedure.could u plz explain if u don mind ??

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply