odbc的不知道,ado的知道但是忘了。不过你可以从TADO...
算不帮你找一下吧

解决方案 »

  1.   

    PromptDataSource这是Delphi的一个函数,在ADODB中定义,它的用法可以看Borland\Delphi5\Source\property editor\adoconed.pasodbc我就不知道了。
      

  2.   

    AdoConEd中定义的EditConnectionString
    while (not sjlj.connected) do
        try
          sjlj.Open;
        except
          EditConnectionString(sjlj);
          connok:=false;
        end;
      

  3.   

    //以下为调用ODBC数据源配置窗体的代码
    procedure getDialogODBCDataSourceConfig;
    var
      theSysDir:string;
    begin
      SetLength(theSysDir,MAX_PATH);
      GetSystemDirectory(PChar(theSysDir),MAX_PATH);
      theSysDir:=trim(theSysDir)+'\odbcad32.exe';
      winexec(PChar(theSysDir),SW_NORMAL);
    end;