PAssing JSON to a stored Procedure
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
danmeland
5 - Atom
‎09-18-2023
10:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I am not sure how this works. I simply want to pass a JSON from the builder to a stored procedure as a parameter.
Any thoughts?
Labels:
- Labels:
- Developer Tools
3 REPLIES 3
geraldo
13 - Pulsar
‎09-18-2023
08:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Could you send an example.
I believe that through the batch macro you can pass this parameter in presql or post sql to execute the procedure
‎09-19-2023
03:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
ok the flow senerio is to query a web service, retrieve the JSON, cleanse it, then pass it through to a Sql Server stored procedure.
Seems quit simple, but I just cant rap my head around it. The parameter will retain the same name each time, but how is the json string passed?
Thanks in advanced
geraldo
13 - Pulsar
‎09-19-2023
05:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
the raw json is usually on just one line. In the batch macro you place a parameters tool and an action and replace the parameter that you have to pass in the procedure
