ADO newby ODBC error

From: Frits v/d Laan (F.vd.laan)
Date: 11/27/03

  • Next message: JPXA: ""Key column information in insufficient or incorrect. Too many rows were affected by update""
    Date: Thu, 27 Nov 2003 22:30:59 +0100
    
    

    as a newby on ADO I get errorsmessages from the ODBC
    Is (unlike the BDE) the ODBC not always availible??

    When I test this procedure on my computer it works fine
    but on another machine I get an errormessage
    from the ODBC

    and is this the way to make a (flexible) connection?

    procedure TForm1.testconnectClick(Sender: TObject);
    var mypath:string;
    begin
     mypath:=extractfilepath(application.exename)
     mypath:=pad:=copy(pad,1,length(pad)-1); //get rid off the backslash
     adotable1.active:=false;
    adoconnection1.connected:=false;
    adoconnection1.defaultdatabase:=mypath;
    adoconnection1.connectionstring:='Provider=MSDASQL.1;Persist Security
    Info=False;Data Source=dBASE Files;Mode=Read|Write'; //(no pathname
    here)
     adoconnection1.connected:=true;
     adotable1.tablename:='myfile'; //an existing dBase4 file
     adotable1.active:=true; // here the errormessage shows up
    end;


  • Next message: JPXA: ""Key column information in insufficient or incorrect. Too many rows were affected by update""

    Relevant Pages

    • Re: TADO vs. TQuery
      ... >> I have an application that uses ODBC to connect to MS SQL ... >> this benefit greatly if I changed to ADO? ... It will take a while to 'tune up' ADO objects to get BDE speed. ... Eventually we started using DOA (Direct ...
      (borland.public.delphi.database.ado)
    • Re: ADODB.Connection object not returning correct ConnectonString prop
      ... Opens the connection (successfully) ... I'm not positive but a guess is that ADO is using the MSDASQL Provider to ... provide OLE DB support for ODBC. ... ODBC Driver. ...
      (microsoft.public.data.ado)
    • Re: Problem updating a record containing a negative Value
      ... If it is the same in ADO or ADO.NET then this is definitely a bug in ODBC ... driver from the vendor. ...
      (microsoft.public.data.ado)
    • Re: [Access2003, VBA] Use DAO or ADO?
      ... ODBC, whatever the back end. ... to a jet backend to open a ado recordset. ... customers want/need sql server and another wants to use MySql. ...
      (comp.databases.ms-access)
    • RE: :ODBC vs. DBD::ADO
      ... Subject: ODBC vs. DBD::ADO ... I've never found anything that ADO could do that ODBC couldn't. ... figure out its quirks but for Perl ODBC works perfectly. ... Marble Bar Asset Management LLP is regulated and authorised by the FSA. ...
      (perl.dbi.users)