1

Is there a way I can execute a stored procedure from karate.

This is what I tried:

def StoredProc = db.runQuery(“EXEC spintegration.cleanup”)

The query executes correctly when I try it in the database. But in karate I am getting bad SQL grammar exception.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Eleza
  • 53
  • 5
  • Procedural code is **highly vendor-specific** - so please add a tag to specify whether you're using `mysql`, `postgresql`, `sql-server`, `oracle` or `db2` - or something else entirely. – marc_s Jun 26 '23 at 04:55
  • this is completely dependent on how you implemented the `runQuery()` Java code and most likely has nothing to do with karate: https://stackoverflow.com/a/52078427/143475 – Peter Thomas Jun 26 '23 at 05:32

0 Answers0