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 > Informix > set explain on

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-27-03, 13:27
darryl2468 darryl2468 is offline
Registered User
 
Join Date: Aug 2003
Posts: 4
Unhappy set explain on

I am looking for a way to retrieve the "set explain on" results (usually in sqexplain.out) without writing to the file. My sql statements are executed via a perl cgi script and therefore, the user does not necessarily have an account to write to.

Also, I have not been able to execute a prepared compound sql statment that includes the "set explain on" statement followed by a select statement. Any insights?
Ex: $sth = $dbh->prepare("set explain on;
select * from tablename where field < condition;
set explain off");
$sth->execute();
Reply With Quote
  #2 (permalink)  
Old 08-29-03, 11:22
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Re: set explain on

Quote:
Originally posted by darryl2468
I am looking for a way to retrieve the "set explain on" results (usually in sqexplain.out) without writing to the file. My sql statements are executed via a perl cgi script and therefore, the user does not necessarily have an account to write to.

Also, I have not been able to execute a prepared compound sql statment that includes the "set explain on" statement followed by a select statement. Any insights?
Ex: $sth = $dbh->prepare("set explain on;
select * from tablename where field < condition;
set explain off");
$sth->execute();
Hi,

I think what there is no form to change the exit, if it is possible to be avoided of output the SELECT, runinnig SET EXPLAIN ON AVOID EXECUTE, in Informix greater version 9.x.
In Windows the output of file this in %INFORMIXDIR%\sqexpln\username.out.
In Unix this in the directory of the ususario.
You would rot rename the output file.

Gustavo.
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