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 > Informix UNLOAD via ODBC

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-19-03, 13:52
harveydrone harveydrone is offline
Registered User
 
Join Date: Feb 2003
Posts: 2
Question Informix UNLOAD via ODBC

Hi there.

I'm trying to execute an "unload to" SQL statement on an Informix database, while connecting through ODBC. I'm using the Informix 3.80 32 bit driver for Windows 2K. The statment I'm trying to execute is:

unload to 'test.unl' select * from facility

I'm doing this from a SQL Server database, using an Execute SQL DTS task. The message I get is simply "A syntax error has occurred."

Any help?
Reply With Quote
  #2 (permalink)  
Old 02-20-03, 05:45
eherber eherber is offline
Registered User
 
Join Date: Aug 2002
Location: Bonn/Germany
Posts: 152
unload is not an SQL statement.

The 'unload' command is only available thru
dbaccess or isql or 4gl.

You can't use 'unload' thru esql/c or thru odbc.
You have to program the unload manually, i.e.
declare a cursor and fetch thru all rows and
writing them to an unload file.
__________________

Best regards

Eric
--
IT-Consulting Herber
WWW: http://www.herber-consulting.de
Email: eric@herber-consulting.de

***********************************************
Download the IFMX Database-Monitor for free at:
http://www.herber-consulting.de/BusyBee
***********************************************
Reply With Quote
  #3 (permalink)  
Old 02-20-03, 13:18
harveydrone harveydrone is offline
Registered User
 
Join Date: Feb 2003
Posts: 2
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