Solved

EXEC SP and suppress built-in SP to return data

Posted on 2014-09-19
4
89 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

Suggested Solutions

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
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.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now