TSQL Dynamically determine parameter list for SP/Function
问题 I want to write a generic logging snip-it into a collection of stored procedures. I'm writing this to have a quantitative measure of our front-user user experience as I know which SP's are used by the front-end software and how they are used. I'd like to use this to gather a base-line before we commence performance tunning and afterward to show the outcome of tunning. I can dynamically pull the object name from @@PROCID, but I've been unable to determine all parameters passed and their values