select * from '文件名'
Provider=MSDASQL.1;Extended Properties="DBQ=d:\;DefaultDir=D:\;Driver={Microsoft Text Driver (*.txt; *.csv)};DriverId=27;Extensions=asc,csv,tab,txt;MaxBufferSize=2048;PageTimeout=5;"
Schema.ini 和文件数据库放到一起
[error1.txt]
ColNameHeader = true
CharacterSet = OEM
Format =Delimited(|)
MaxScanRows=0
Col1=logtime DateTime
Col2=logtype Text Width 10
Col3=username Text Width 13
Col4=logtime1 DateTime
Col5=ID Text
http://msdn.microsoft.com/zh-cn/library/ms709353(v=vs.85).aspx