I need to retrieve the first result set from a stored procedure,
this procedure returns tow result set And I need the first one only
How Can I do it ??
for example :
-- the first result
-----------------------------------------
| ID | Code | Name | Notes | .... | ... |
-----------------------------------------
| | | | | | |
-- the second result
-----------------
| Date | Number |
-----------------
| | |
If you are able to change the Stored Procedure code, you could add an Optional SQL Parameter, like:
@FirstOnly bit = 0Then after the first
SELECTstatement, have the following query: