ADO Execute not reading a line of SQL code?

Posted by llaskin on Stack Overflow See other posts from Stack Overflow or by llaskin
Published on 2010-04-15T14:29:25Z Indexed on 2010/04/15 14:33 UTC
Read the original article Hit count: 142

Filed under:
|
|

My code is below:

  var statement = "test_oracle.sql";
  F = aqFile.OpenTextFile(statement, aqFile.faRead, aqFile.ctANSI);
  F.Cursor = 0;
  while(! F.IsEndOfFile()){
    s = F.ReadLine();
    oResult = Project.Variables.oConnection.Execute_(s);
    CheckResult(oResult, "Unable to run SQL script to add documents");

The first line that "s" reads is: set serverout on size 10000

An error is returned as "ORA-00922: missing or invalid option"

Can anyone provide guidance?

© Stack Overflow or respective owner

Related posts about jscript

Related posts about JavaScript