How to connect DBF databases using C #

zhaozj2021-02-16  91

samples: string connStr = "PWD =; SourceType = DBF; UID =; Collate = Machine; Deleted = Yes; BackgroundFetch = Yes; Exclusive = No; Driver = Microsoft Visual FoxPro Driver; Null = Yes; SourceDB = h: //" ; OdbcConnection conn = new OdbcConnection (connStr); conn.Open (); string cmd_string = "select item_no, decp, pkclass, freq, lic_type, prod_fct, remark from ITEMHDR order by item_no"; ... OdbcDataAdapter da = new OdbcDataAdapter ( Cmd_string, conn; da.fill (DS, "itemhdr"); ...

转载请注明原文地址:https://www.9cbs.com/read-12152.html

New Post(0)