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 > Load command in Informix

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-23-04, 08:20
nids1811 nids1811 is offline
Registered User
 
Join Date: Jan 2004
Posts: 1
Red face Load command in Informix

Hi,

Can I use "LOAD from File" command from inside a Stored Procedure? When I try to run this command, its gives me "201: Syntax error" at Load. But when I run the same from $ prompt, it runs and loads the table.

Here is what I am running:

load from "/myfile.csv" DELIMITER "," insert into myTable(col1,col2)

The above runs successfully from command prompt but when I include the above statement in a stored procedure its gives "syntax error".

create procedure myprocedure()

load from "/myfile.csv" DELIMITER "," insert into myTable(col1,col2);

end procedure;

Can somebody tell me if this is possible at all to run from SP or it is only a Command Prompt statement.

Thanks.

-Nids1811.
Reply With Quote
  #2 (permalink)  
Old 01-29-04, 08:54
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
You cannot load from inside a procedure.
__________________
rws
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