Flow designer - jdbc step - exec stored procedure throws error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2020 04:20 PM
Hi
Looking for a solution/ answer for this scenario.
I have a jdbc step on flow designer where i'm putting in a command to execute a stored procedure on SQL server database as below:
Exec dbo.stored_procedure_name @param1 = 'x', @param2 = 'y'
When i test the jdbc step i get this error message: Given SQL statement is not allowed to be executed at this time.
I have put 'exec' as an allowed value on the mid server property: mid.property.jdbc_operations value: exec,select,update,insert,delete,show,create,describe
I'm wondering if its not supported by ServiceNow.
There's a stored procedure call on jdbc activity in worklow however.
Any help on this is appreciated.
- Labels:
-
flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2022 10:29 AM
Hey all,
How to call stored procedure through JDBC custom activity or in script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2022 08:31 PM
Has anyone tried this? I am looking for something similar. I know gs.sql is no longer an option but what's the alternative?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2023 10:09 AM - edited 01-04-2023 10:58 AM
Hello,
If you are still wondering the issue is because you need to go to Mid Server > Properties and add the exec option there and not in sys_properties.
You need to restart the Mid Server for this to work.
That worked for me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2023 10:10 AM - edited 01-04-2023 10:58 AM
Hello,
If you are still wondering the issue is because you need to go to Mid Server > Properties and add the exec option there and not in sys_properties.
You need to restart the Mid Server for this to work.
That worked for me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2023 11:45 AM
Can you send me the screen shot as to how to set the properties?