Query to return internal details about stored function in MS-SQL database

Posted by Anthony on Stack Overflow See other posts from Stack Overflow or by Anthony
Published on 2010-04-26T02:52:22Z Indexed on 2010/04/26 3:03 UTC
Read the original article Hit count: 296

I have been given access to a ms-sql database that is currently used by 3rd party app. As such, I don't have any documentation on how that application stores the data or how it retrieves it.

I can figure a few things out based on the names of various tables and the parameters that the user-defined functions takes and returns, but I'm still getting errors at every other turn.

I was thinking that it would be really helpful if I could see what the stored functions were doing with the parameters given to return the output. Right now all I've been able to figure out is how to query for the input parameters and the output columns.

Is there any built-in information_schema table that will expose what the function is doing between input and output?

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about information-schema