Solved

SUPPRESS RESULT SET FROM A STORED PROCEDURE

Posted on 2008-10-16
1
1,776 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
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

685 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