I have a SP called GetDailyData in SQL Server 2008 like:
CREATE PROCEDURE [dbo].[GetDailyData]
@date datetime
AS
BEGIN
select * from myTable where date >= @date
END
I would like to call the stored procedure in another stored procedure and print the number of returned data. I tried this, but did not work:
Select COUNT(EXEC GetDailyData @date)
How can I perform it? Any help would be appreciated.