Solved

EXEC SP and suppress built-in SP to return data

Posted on 2014-09-19
4
98 Views
Last Modified: 2014-09-27
Dear experts,

I have a SQL 2008 database and I call a stored procedure from C# code. The SP called inside him called other SP which return recordset. Look on the pic. the result of execution.

The question is: how to avoid returning back to C# code the first result ? I guess I change the SP and pass a value that tell to embed SP to not return data, but is there a other way?
D--Temp-Untitled.png
0
Comment
Question by:dvplayltd
  • 2
  • 2
4 Comments
 
LVL 8

Expert Comment

by:Ganapathi
ID: 40333053
You will have to remove the select statement that selects the result.
0
 
LVL 8

Expert Comment

by:Ganapathi
ID: 40333056
Can you post the sub-procedure code?
0
 

Accepted Solution

by:
dvplayltd earned 0 total points
ID: 40336657
It look like the addingg additional param is the solution.
0
 

Author Closing Comment

by:dvplayltd
ID: 40347387
I found the solution on my own.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
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…

808 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