type Tbdeasp = class(TMtsAutoObject, Ibdeasp) protected function open(const sqlstr, aliname: WideString): OleVariant;
safecall; function execute(const sqlstr, connstr: WideString): OleVariant;
safecall; { Protected declarations } end;
implementation
uses ComServ;
function Tbdeasp.open(const sqlstr, aliname: WideString): OleVariant; var tmpre:variant; begin tmpre:=createoleobject('adodb.recordset'); try tmpre.open(sqlstr,aliname); except
end; result:=tmpre; end;
function Tbdeasp.execute(const sqlstr, connstr: WideString): OleVariant; var tmpre:variant; begin tmpre:=createoleobject('adodb.connection'); try tmpre.open(connstr); tmpre.execute(sqlstr); result:=1; except result:=0; end;