Raw text output from stored procedure #2591
mortenlange
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Hi, @mortenlange, could you share an example with DAB, that is causing issues for you due to how DAB formats results for stored-procedures? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
It would be nice if DAB could be forced not to format the output from stored procedures as JSON and instead just show the raw text output that the procedure returns.
Thing is that the JSON formatting is sometimes done server side in the stored procedure to need specific customization needs.
For example more advanced nested JSON structure that is required by an application as a part of the contract.
(In TSQL this is obtained by using the "FOR JSON PATH" clause.)
When DAB afterward does JSON formatting things go really wrong.
https://learn.microsoft.com/en-us/sql/relational-databases/json/format-query-results-as-json-with-for-json-sql-server?view=sql-server-ver16&tabs=json-path#output-of-the-for-json-clause
Such a feature would also make it easier to retrofit existing REST endpoints into DAB since same output can be guaranteed.
Beta Was this translation helpful? Give feedback.
All reactions