How to query field names of a stored procedure?

  • Ok, so I want to get all the field names of a given procedure. So far I've found

    Select * from Information_Schema.Routines where Routine_Name = 'some_procedure'

    but that just gets me a list of all the procedures....which is good...but I need to go one step further and get the fields in that procedure....possible?

  • Take a look at sp_sproc_columns and sp_sproc_columns_90 (Assuming SQL 2K5).

    GL!

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

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