FUNCTION Dcdata(CONST filename: STRING): boolean;<br>VAR<br> i : integer;<br> ts : tstrings;<br>BEGIN<br> ts := tstringlist.Create;<br> WITH ts, adoconnection1 DO<br> TRY<br> GetTableNames(ts);<br> FOR i := 0 TO ts.Count - 1 DO<br> Execute(format('select * into %s in %s from %s', [Strings, filename,<br> Strings]));<br> result := false;<br> FINALLY<br> ts.Free;<br> END;<br>END;