Please be aware that the SAP SQL Anywhere Forum will be shut down on August 29th, 2024 when all it's content will be migrated to the SAP Community.

I think I must be missing something very obvious! I'm trying to run a very long sql script (with Run Script) , which generates large number of unimportant (in this context) warnings. While behaviour on error can be controlled using the Options | General | Command Files settings, warnings still seem to halt execution and require manual intervention.

There is a command line switch (-q) so I have a work around, but I don't see any equivalent setting in the GUI.


asked 24 Mar '11, 10:41

Justin%20Willey's gravatar image

Justin Willey
accept rate: 20%

Setting the on_error option to 'Continue' should (but currently does not) prevent warnings from being displayed. This is a behavior change that was inadvertently introduced in version 9.0.1. We'll issue a fix for this in an upcoming EBF. Thanks for pointing it out.

permanent link

answered 25 Mar '11, 10:39

Chris%20Irie's gravatar image

Chris Irie
accept rate: 46%


set temporary option on_error = 'Continue';

to your SQL script should cause your script to continue if there are errors or warnings.

permanent link

answered 25 Mar '11, 09:05

Ian%20McHardy's gravatar image

Ian McHardy
accept rate: 40%

Comment Text Removed

Thanks for the suggestion, but while it does prevent errors interrupting execution, warnings still bring up a dialog box.

This can be illustrated by this script:

set temporary option on_error = 'Continue';
select * from NonExistentTable;
select first * from TableThatDoesExist;
select * from AnotherTableThatDoesExist;

Execution stops with a warning that the result is non-deterministic, having continued past the error caused by the non-existent table.

(25 Mar '11, 09:30) Justin Willey
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 24 Mar '11, 10:41

question was seen: 2,768 times

last updated: 25 Mar '11, 10:39