Solved

SUPPRESS RESULT SET FROM A STORED PROCEDURE

Posted on 2008-10-16
1
1,779 Views
Last Modified: 2008-12-12
Is it possible to suppress a resultset from a stored procedure?

See Code Snippet for example..

I'd like to call MONTHLYREPCOMMISSIONS  and return only the results from the third stored procedure "SalesTracingNdcMainReportByRepSP".

Thanks!
ALTER              PROCEDURE dbo.MONTHLYREPCOMMISSIONS 
@Year int,
@Period int,
@Rep varchar(10)
AS
DECLARE @SQL NVARCHAR(4000)
DECLARE @ParameterList nvarchar(200)
DECLARE @ParameterList2 nvarchar(200)
 
EXEC OutOfTerritorySP @Year,@Period,'0'
EXEC FSDBMR.dbo.SalesTracingCommissionInvoiceDetailReportSP @Year,@Period
EXEC SalesTracingNdcMainReportByRepSP @Year,@Period,0
 
GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

Open in new window

0
Comment
Question by:DEADSETONFINISHING
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 250 total points
ID: 22733208
>Is it possible to suppress a resultset from a stored procedure?
no.
only the "x rows affected" can be supressed with the SET NOCOUNT ON

anything else needs to be programmed into the "other" procedures, a parameter to say "don't return anything, just do your work.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question