This stored procedure for SQL Server 7.0 and 2000 will return the number of rows for stored procedures. Setting the parameter to a stored procedure name will return the count of rows for that procedure. Omitting the parameter or setting it to NULL will return all the stored procedures in the database and the row count for each.
Updated on 3/12/02 to correct a typographical error — the script contained an extra “and” that made it fail.
Author: Neil Mederich
Disclaimer: We hope that the information on these script pages is
valuable to you. Your use of the information contained in these pages,
however, is at your sole risk. All information on these pages is provided
“as -is”, without any warranty, whether express or implied, of its accuracy,
completeness, or fitness for a particular purpose…
Back to Database Journal Home