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.

using 10.0.1.3931

asked 24 Mar '11, 10:41

Justin%20Willey's gravatar image

Justin Willey
6.8k111145214
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
8051314
accept rate: 46%

Adding

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
3.1k23353
accept rate: 39%

Comment Text Removed
1

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×114
×79

question asked: 24 Mar '11, 10:41

question was seen: 1,199 times

last updated: 25 Mar '11, 10:39