我试了加上Text和Schema文件后仍然不行,不知何故?请教高手告知。
以上是odbc
Connecting to a Text File using the JET OLE DB Provider: strConnect = _T("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\DatabasePath\\;"
"Extended Properties=\"\"text;"
"HDR=Yes;FMT=Delimited;\"\";");
Note: You must to specify the filename in the sql statement....
For Example:
CString strQuery = _T("Select Name, Address From Clients.txt");
For more information, see: Q262537