Skip to main content
Question

How to properly retrieve multiple-tables results of a sqlserver stored procedure ?


Forum|alt.badge.img

Hi !

 

I run a stored proc. from sqlserver whose results consists of roughly 10 "tables"/"datasets". (some of them might be empty for certain values of the exec parameters)

 

When called several time with different parameters from a SQLExecutor, the result is a stack of every line of result from every table for every iteration of the call...

 

 

I want to call a python script for each iteration of the call, that will do different things with each dataset of the result...

 

how to split the lines of the result back through each iteration of the call and each dataset ? (And How to know which tables of the results where empty ?)

 

Any way to get the cursor metadata in attributes (ex : the dataset index in the result cursor)?

0 replies

Be the first to reply!

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings