What database are you using?
As far as I know SQL is normally done in plain strings, and not in binary. So you should not need to use the message builder.
You should be able to do something like:
var sql = "select "
sql = sql + fields;
sql = sql + " from "
sql = sql + tables;
Then send it with something like:
function callback(result) {
ogscript.debug(results)
}
rosstalk.sendMessageWithResponse(sqlhost, sqlport, sql, "\n", callback);
You could do it with messageBuilder, but it feels like overkill to me if all you are dealing with is strings. I have not sent SQL from DashBoard, so perhaps I am missing something.
#DashBoard