If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Other > Ingres Scripting

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-31-03, 06:03
vb6dv vb6dv is offline
Registered User
 
Join Date: Oct 2003
Location: France
Posts: 10
Ingres Scripting

Hi all,

I would like to know how to break my ingres script in case of error.

For more informations:
I wrote scripts that :
Create DB
Copy data
Duplicate Tables
Modify somes
Drop modified tables
Put on index

But I got trouble.

How do to break on error ?

Thanks in advance

.\vb6dv/.
Reply With Quote
  #2 (permalink)  
Old 10-31-03, 06:38
dbabren dbabren is offline
Registered User
 
Join Date: Jul 2003
Location: England
Posts: 152
In SQL putting \nocontinue at the beginning of the script will stop the script at the first SQL error.
__________________
Regards
Dbabren
Reply With Quote
  #3 (permalink)  
Old 10-31-03, 08:09
vb6dv vb6dv is offline
Registered User
 
Join Date: Oct 2003
Location: France
Posts: 10
thanks a lot !
Reply With Quote
  #4 (permalink)  
Old 11-04-03, 10:27
sparkz sparkz is offline
Registered User
 
Join Date: Nov 2003
Location: UK
Posts: 2
Hi,

What version of Ingres are you running?

There was a change in how \nocontinue works, it used to go to the next \g in the file, now it exits the script (and maybe commits on the way out).

Regards,
Reply With Quote
  #5 (permalink)  
Old 11-04-03, 10:45
vb6dv vb6dv is offline
Registered User
 
Join Date: Oct 2003
Location: France
Posts: 10
I'm in a Ingres 2.1 version.
And on my version \nocontinue break up thread.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On