3

With FSharp.Data.SqlClient, how do you use SqlCommandProvider or SqlProgrammabilityProvider with multiple result sets? For instance if you wanted to get Customer+Orders where your stored procedure returns the customer info in the first result set and the orders in the second result set?

records:

{ OrderId=4; Date=xxx }
{ Name="Dave Smith"; Orders=[...] }

sp:

 Select Name From Customer Where CustomerId=@CustomerId
 Select OrderId, Date From Orders Where CustomerId=@CustomerId
asked May 19, 2017 at 0:53

1 Answer 1

2

FSharp.Data.SqlClient is based on sys.sp_describe_first_result_set. As such, it ignores second result set completely.

answered May 22, 2017 at 13:35

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.