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 > DB2 > DB2 Load

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-10-03, 07:11
aegluke aegluke is offline
Registered User
 
Join Date: Oct 2003
Posts: 1
DB2 Load

Hi,

is there any way to use the load-statement via ado or odbc? every call was answered by a db2-cli error message.

the command "load from "C:\test.del" of DEL INSERT INTO TABLE Test" works with the command line processor but not with ado. any hints?

thanks
Erik
Reply With Quote
  #2 (permalink)  
Old 10-10-03, 10:06
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: DB2 Load

Quote:
Originally posted by aegluke
Hi,

is there any way to use the load-statement via ado or odbc? every call was answered by a db2-cli error message.

the command "load from "C:\test.del" of DEL INSERT INTO TABLE Test" works with the command line processor but not with ado. any hints?

thanks
Erik
Hint: you can only run SQL commands using ADO/ODBC/JDBC/etc, and LOAD is not a SQL command, it's a CLP command. Therefore, to process it you need CLP.

To launch LOAD programmatically you could execute CLP from your program and pass the LOAD command to it.
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