Re: Multiple-step OLE DB operation generated errors. Check each OLE DB status value

From: Zhuo (zli_at_micros.com)
Date: 02/17/05

  • Next message: Bill Todd: "Re: SQL ORDER BY as parameter"
    Date: Thu, 17 Feb 2005 08:39:24 -0500
    
    

    Thank you Brian. Your way works better. I found my problem. The order of
    creating the paramters is important. It has to match with the SQL statement.
    I created p4 first then p3. Once I switch the order, it works fine. (p3
    should be :p3, that was a typo, when I post on this news group).

    "Brian Bushay TeamB" <BBushay@Nmpls.com> wrote in message
    > My guess is one of you parameters is of the incorrect type
    > qry := TADOQuery.Create(self) ;
    > qry.SQL.Text :='INSERT INTO LOGTABLE (SNOTES, SCODE, LID, SMODULE)VALUES
    > (:p1, :p2, p3, :p4)';
    > qry.Connection := ADOConnection1;
    > qry.parameters.paraseSQL(qry.sql.text,true);
    >
    > qry.ExecSQL;
    >
    > --
    > Brian Bushay (TeamB)
    > Bbushay@NMPLS.com


  • Next message: Bill Todd: "Re: SQL ORDER BY as parameter"

    Relevant Pages

    • Re: fly away?
      ... >>I have a grid... ... > Brian Bushay (TeamB) ... Prev by Date: ...
      (borland.public.delphi.database.ado)
    • Re: Update 3 - The performance update
      ... Brian -- ... Nick Hodges -- TeamB ... Prev by Date: ...
      (borland.public.delphi.non-technical)
    • Re: A cross-platform vision for Delphi
      ... Dave Nottage [TeamB] wrote: ... I'm not sure which Brian you're referring to since I believe ... I'm the only one posting on this thread, ...
      (borland.public.delphi.non-technical)
    • Re: Null error
      ... Thanks Brian, but I still get the error "Cannot convert type Null into type ... > Brian Bushay (TeamB) ... Prev by Date: ...
      (borland.public.delphi.database.ado)
    • Re: Thanks to Brian Burshay
      ... Anyway if your ever get to Madrid just let me know. ... Juan ... >>I just want to say THANKS to Brian for his support. ... > Brian Bushay (TeamB) ...
      (borland.public.delphi.database.ado)