Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This API sets an attribute of an SQL connection.

Parameters
Info

This API can accept an optional database connection definition object to select between multiple database connections. To select the database connection, call pjs.getDB() and pass the result as the first parameter, followed by the parameters documented below. If a database connection definition object is not passed, the default database connection is used.

  1. Attribute to change.
  2. New attribute value

...

Code Block
languagejavascript
pjs.connect("*LOCAL");

//Use SQL naming convention
pjs.setConnectAttr(SQL_ATTR_DBC_SYS_NAMING, SQL_FALSE);
 
var c1 = pjs.allocStmt();
pjs.executeDirect(c1, "select prid from demolib.productsp order by prid");
pjs.fetchLast(c1, prid);
 
pjs.close(c1);
 
pjs.disconnect();

...


Requirements

This API requires the Profound.js Connector module.