SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
DatabaseExecute command

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
DatabaseExecute command
Author Message
Dominic Klein



Joined: 23 Nov 2001
Posts: 132

Post DatabaseExecute command Reply with quote

Hi,
I want to execute a block of plsql code that normally I would write on many lines in a text editor.
However with 24x7 I have found in the past I have had to put every line on one line in 24x7.

eg:

instead of:
databaseexecute("begin
line 1;
line 2;
line 3;
end;", rows_affected);

I have to do databaseexecute("begin line 1; line 2; line 3; end;", row_affected);

Do you know now if it is possible to use database execute over a number of lines or do I still have to put the commands all on one line?
It's just that it makes it harder to maintain the code when it is on a vary long line.
Cheers

Thu May 13, 2004 6:25 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Re: DatabaseExecute command Reply with quote

24x7 always supported PL/SQL blocks. I guess the problem you have is not caused by DatabaseExecute but to how you code this command on multiple lines in other words you have script syntax error.

Example (invalid syntax):
DatabaseExecute("begin
  line 1;
  line 2;
  line 3;
end;", rows_affected);

Example 1 (valid syntax):
DatabaseExecute("begin line 1; line 2; line 3; end;", rows_affected);

Example 2 (valid syntax):
DatabaseExecute("begin &
  line 1; &
  line 2; &
  line 3; &
end;", rows_affected);

: Hi,
: I want to execute a block of plsql code that normally I would write on many
: lines in a text editor.
: However with 24x7 I have found in the past I have had to put every line on
: one line in 24x7.

: eg: instead of: databaseexecute("begin
:  line 1;
:  line 2;
:  line 3;
: end;", rows_affected);

: I have to do databaseexecute("begin line 1; line 2; line 3; end;",
: row_affected);

: Do you know now if it is possible to use database execute over a number of
: lines or do I still have to put the commands all on one line?
: It's just that it makes it harder to maintain the code when it is on a vary
: long line.
: Cheers

Thu May 13, 2004 8:44 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.