Connecting Apama Applications to External Components > Using Standard Adapters > Using the Apama Database Connector > The ADBC Event Application Programming Interface > Running commands
Running commands
To execute database commands, such as creating a table or SQL operations such as Delete and Update, use the Connection event’s runCommand action.
1. Call the runCommand action of the Connection event (for the open database) with the a string containing the SQL command to execute and the name of the callback action.
2. Create a handler action for the runCommand callback action.
The definitions for the two forms of the runCommand are:

action runCommand(
  string commandString,
string token,
  action <Connection, string, string> callback)
and

action runCommandFull(
  string commandString,
string token,
  dictionary<string, string> extraParams,
  action<Connection, string, string> callback)
Copyright © 2013-2015 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.