I have inherited a DB (SQL Server 2016) with almost 6000 SP and no naming conventions… I have to identify all SP that return data vs which are update or inserts or delete… a lot of the SP are complex, and can do update / insert and then return data…. Is there any way to identify which sp return data and which do not (IE are pure insert / delete / update)…. Besides visually eye balling each is there a quick method…
Thank you… In advance.
Best Answer
This works locally for me to identify result returning procs using
sp_describe_first_result_set
, which is only available on SQL Server 2012+. It's on the quick/dirty side of things, but hopefully it'll get you started,