Results 1 to 2 of 2

Thread: DB2 Load

  1. #1
    Join Date
    Oct 2003
    Posts
    1

    Unanswered: 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

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1

    Re: DB2 Load

    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.
    ---
    "It does not work" is not a valid problem statement.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •