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 > Aqua data studio - SQL statement

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-14-11, 08:27
messi messi is offline
Registered User
 
Join Date: Jun 2011
Posts: 2
Aqua data studio - SQL statement

Hi everybody,

I have recently started to use "aqua data studio" but when I'm trying to run a query like below and unload the table to a file then it gives me an error which I really don't know how to fix it.

Code:
set isolation to dirty read;
unload to C:\scripts\xxxx.txt
select count(hawb_num), hawb_num from image_ref
group by hawb_num
I have also tried "" and '' as well.

Please let me know if you have any idea!
Reply With Quote
  #2 (permalink)  
Old 06-14-11, 09:13
marymurny marymurny is offline
Registered User
 
Join Date: Sep 2004
Posts: 32
Aqua data studio - SQL statement

What is the error you are receiving?
Reply With Quote
  #3 (permalink)  
Old 06-14-11, 10:01
messi messi is offline
Registered User
 
Join Date: Jun 2011
Posts: 2
Code:
>[Error] Script lines: 1-4 --------------------------
 A syntax error has occurred. 

 [Executed: 6/14/11 3:51:09 PM CEST ] [Execution: 0/ms]
Reply With Quote
  #4 (permalink)  
Old 06-14-11, 11:05
marymurny marymurny is offline
Registered User
 
Join Date: Sep 2004
Posts: 32
Aqua data studio - SQL statement

The error message indicates the server does not understand the SQL.

What is the column type for hawb_num, also what version of Informix are you using. I would probably start with the following sql:

select count(hawb_num) from image_ref

then add the other information to find where the problem is.
Reply With Quote
  #5 (permalink)  
Old 06-14-11, 11:59
marymurny marymurny is offline
Registered User
 
Join Date: Sep 2004
Posts: 32
Aqua data studio - SQL statement

I tested with the stores database using the customer table. Aqua data studio give me an error on the unload statement, however the command works with dbaccess on the server side.

Also the unload path needs "" around it.

unload to "C:\scripts\xxxx.txt"
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