Customer Portal

DBExecute SQL side effects

Comments 4

  • Avatar
    avackova
    0
    Comment actions Permalink
    Hello Chris,
    to get data from database use DBInputTable component. DBExecute component can execute update or procedure call. You can find examples of reading/writing data to/from databases among our examples (http://sourceforge.net/projects/clovere ... p/download)
  • Avatar
    newscientist
    0
    Comment actions Permalink
    Thanks.

    I have read the documentation in some detail. If I enter: select setval('table_col_seq',1); into DBExecute (I'm not interested in return data), it fails with the error given previously. How do I avoid getting this error?


    Regards
    Chris
  • Avatar
    avackova
    0
    Comment actions Permalink
    Select statement can't be executed with DBExecute component. If you want to execute the statement, that (may) returns the result set, you have to use DBInputTable.
  • Avatar
    newscientist
    0
    Comment actions Permalink
    Thanks!

    Perhaps you could update the DBExecute doc section to make this clear.

    Regards
    Chris

Please sign in to leave a comment.