I have a stored procedure (see sample below) that is a report. It runs correctly, but it always has an additional piece of output. Return Value of zero. (See attachment).
When I put this stored procedure into a Entrinsik Informer reporting tool, it's not liking that return value. Is there some way I can prevent it from prevent it from trying to return something to the reporting tool?
USE [coll18_test]
GO
/****** Object: StoredProcedure [dbo].[TEST_DEG_OFFERED2] Script Date: 8/7/2017 8:53:20 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[TEST_DEG_OFFERED2]
@term CHAR(7)
AS
BEGIN
SET NOCOUNT ON;
select
AC.ACAD_INSTITUTIONS_ID,
AC.ACAD_TERM,
AC.ACAD_DIVISION,
APL.ACPG_DEPTS,
etc., etc.,
from ACAD_CREDENTIALS AC
a bunch of left joins
WHERE AC.ACAD_TERM = @term
AND AC.ACAD_INSTITUTIONS_ID IN ('0000001','0000640')
END
GO
When I put this stored procedure into a Entrinsik Informer reporting tool, it's not liking that return value. Is there some way I can prevent it from prevent it from trying to return something to the reporting tool?
USE [coll18_test]
GO
/****** Object: StoredProcedure [dbo].[TEST_DEG_OFFERED2] Script Date: 8/7/2017 8:53:20 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[TEST_DEG_OFFERED2]
@term CHAR(7)
AS
BEGIN
SET NOCOUNT ON;
select
AC.ACAD_INSTITUTIONS_ID,
AC.ACAD_TERM,
AC.ACAD_DIVISION,
APL.ACPG_DEPTS,
etc., etc.,
from ACAD_CREDENTIALS AC
a bunch of left joins
WHERE AC.ACAD_TERM = @term
AND AC.ACAD_INSTITUTIONS_ID IN ('0000001','0000640')
END
GO