I want to be able to execute a stored procedure multiple times from within a single SQL Statement action. Is this possible?
The database is SQL Server. In SSMS I would do something like:
dbo.insert_result <args>;
GO
dbo.insert_results <args>;
GO
I need to do this for every transaction executed by the test, and while it's possible to simply execute the SQL Statement action within a loop, it would (probably) be more efficient to build a large statement and execute it once, than to loop repeatedly.
I've tried writing the same command I'd run in SSMS as the query parameter without success. I've also tried removing the GO keyword and separating the statements with a semi-colon, also without success.
Is there a way this can be done?
Hello Ben,
I think you can use a java action program (jar) to execute your SQL Statement.
Best Regards,
Fousseyni B.
I've not tried this but it may not be supported with the current custom action. You could use a jar file and call that from a javascript call.