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 > Using SET command with ODBC

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-24-03, 17:45
bbarnesatl bbarnesatl is offline
Registered User
 
Join Date: Jan 2003
Location: Atlanta, GA
Posts: 1
Using SET command with ODBC

I am trying to issue the SET PDQPRIORITY command and SET ISOLATION within a query that's going through ODBC to an Informix 9.21 engine. I am wondering if this is possible. For instance, in dbaccess, I would enter the following:

set pdqpriority 50;
set isolation dirty read;
select * from my_table

When I enter the same, say from WinSQL via ODBC, I get the following error:

ODBC Error: [Informix][Informix ODBC Driver][Informix]Cannot use a select or any of the database statements in a multi-query prepare.

Is there a way to use the SET statement with ODBC?

I know optimizer directives can be passed by enclosing in {}, but that doesn't appear to work with SET. When I put the braces around the SET statements, the query runs but the SETs are ignored.

Thanks
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