How do I count the number of rows a stored procedure would return the fastest way. Stored procedure returns rows around 100K to 1M records.
Create procedure procedurename AS Begin Select * from Table --if you want where condition write here End Exec Procedurename Select @@rowcount