TSql Script

  • Hi All

    Could you please help me with a script? I want to list all the stored procedure names, owner, type and create date in a database.

    I have written a script that list all the SP name's using the sysobjects table but cannot find the other information about them (owner, type and create date)

    Here is what I have done so far:

    select name, type

     from sysobjects

     where type = 'P'

    Thanks

    Dinesh

     

     

  • Try this:

    select top 10 * from information_schema.routines

    where routine_type = 'procedure'

    and then refine to get the fields/data you want.

    The absence of evidence is not evidence of absence
    - Martin Rees
    The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
    - Phil Parkin

  • Phil

    Thanks very much, exactly what I was after.

    Dinesh

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

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