Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI all i am trying to create a report with data from a stored procedure, i created a stored procedure (which Dynamically Creates SQL) and i tried to create a new dataset with data from the stored procedure when i am trying to add it the dataset is getting created with zero fields, i went to the query part and passed the parameters and the result is showing up. i am kind of confused with the issue becuase my script is working perfectly. i browsed for the issue and some one told to
SET FMTONLY OFF
i tried it but no luck. can any one help me out with this issue.
Posted
Updated 20-Apr-20 6:05am

1 solution

using the main query from the procedure first (not dynamically created sql but without the quotes and without parameters)? When this query is executed, then you will already have all the fields. then you can edit the query window and pass the actual procedure. This way the fields would be there and since the procedure already works (and outputs the same columns as given the dummy query before), there should not be any issue
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900