Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2005
    Posts
    24

    Unanswered: ODBC / CLI Connection with INSERT Statement

    Hi!

    I am trying to use the insert statement in a C Program using the CLI ODBC methods:

    I connect to the DB, then I parse the statement:
    "INSERT INTO TESTTABELLE (ID,NAME) VALUES (?,?)";
    with success, after I use the command SQLAllocStmt( ) then the SQLBindParam()

    in the last step the SQLExecute( )

    I get the following error message:
    SQL_NEED_DATA when using SQLExecute

    Where is the problem located?
    Thanks,
    Klaus

  2. #2
    Join Date
    Sep 2005
    Posts
    24
    Found the problem:
    SQLBindParam( ) had insufficient parameters !

Posting Permissions

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