在設計介面用fileupload伺服器控制項
後台**
public int exportdbf()
;sourcetype=dbf;sourcedb=" + serverpath + ";exclusive=no;null=no;collate=machine;backgroundfetch=no;deleted=no";
conn.connectionstring = connstr;
conn.open();
odbccommand cmd = new odbccommand();
cmd.connection = conn;
string sql = @"select * from " + serverpath;
odbcdataadapter da = new odbcdataadapter(sql, conn);
datatable dt = new datatable();
da.fill(dt);
if (dt.rows.count <= 0)
return expoert.exportdbf(dt,time); //此處是具體的資料庫操作語句
}catch (exception err)
sql檔案資料匯入資料庫
1.建立createsql.sql檔案,內容 drop table if exists t user create table t user user id int 11 not null auto increment,user name char 30 not null,user password...
將DBF檔案匯入Sqlserver資料庫
解決方法 摘抄自網路 方法一 select into 要生成的sql表名 from openrowset microsoft.jet.oledb.4.0 dbase iv hdr no imex 2 database c select from dbf表名.dbf 方法二 select into 要...
mysql資料庫匯入txt檔案資料
把txt檔案匯入到mysql資料庫中,選用的是mysql中的load data 語法。load data local infile d test.txt into table test fields terminated by enclosed by lines terminated by n ig...