Is it possible to do this? I have some filters set in my source Stored Procedure and I really don’t want to have to duplicate it in another just to get the rowcount.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The only way I know how to do this is to insert into a temp table from the stored procedure and then select the count. Unfortunately, there’s no pretty way to perform a ‘select’ on a stored procedure.
Edit
The above method will allow you to select from a stored procedure, but as Greg pointed out, a rowcount can be simplified to: