I have a simple SPROC in my SQL Developer 14 DB that selects records to return to the calling program.
USE [JTSConversion]
GO
/****** Object: StoredProcedure [dbo].[aConvertspRead_bView_buildProd_TaxAuthorityRecs_02] Script Date: 1/20/2018 12:26:00 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
--
-- =============================================
Create PROCEDURE [dbo].[aConvertspbuildProd_TaxAuthorityRecs_02]
-- Add the parameters for the stored procedure here
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here
SELECT *
From bView_buildProd_TaxAuthorityRecs_02
Order By MuniCode, ControlNum, TaxType
END
I would like to return the number of records in the result set back to the calling program so I can show a processing status bar as the records are processed in the calling program.
How can I do that?
Open in new window