Avatar of andrewssd3
andrewssd3
Flag for United Kingdom of Great Britain and Northern Ireland asked on

SQL Server 2008 R2 Suppressing Stored Proc Result Sets

I have a stored proc which returns multiple result sets.  The results are consumed by a VBA client using ADODB to cycle through the result sets using the NextRecordSet method.

Among the genuine result sets it returns from SELECT statements, there is another result set from an INSERT INTO which the ADODB code skips past, as it's not openable as a RecordSet and does not contain anything useful anyway. I have had to add another INSERT INTO, which means changing all the code that uses this to skip another useless RecordSet.

Can anyone tell me if there's a way to suppress these result sets from INSERTs and UPDATEs? I have done quite a bit of googling but can't find anything about this.

I don't particularly like the way the SP works, but changing the fundamentals is not really an option as a lot of code depends on the current output.
Microsoft SQL ServerMicrosoft SQL Server 2008.NET Programming

Avatar of undefined
Last Comment
andrewssd3

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Brian Crowe

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
andrewssd3

ASKER
I will try that - I won't be back in the office until Tuesday, but I'll report back then.

Thanks
andrewssd3

ASKER
Yes - that's exactly it thanks
Your help has saved me hundreds of hours of internet surfing.
fblack61