Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I using Microsoft.ACE.OLEDB.12.0 to read data from text file

This's my connection string
C++
#define ACE_OLEDB_CSV_CONN_STRING L"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=%s;Extended Properties=\"Text;HDR=Yes;FMT=Delimited;\""


How do I to changed to delimited by another character
"FMT = Delimited" to the record is split by ','
How do I changed to delimited by another character
Posted
Updated 6-Feb-18 19:37pm
v2

1 solution

You need to create schema.ini[^] file, which provides a way to set several options, like: delimiter, column name and type, first line, etc.

For further information, please see:
How to: Add a Schema Definition to a Text File Data Source[^]
Much ADO About Text Files[^]
 
Share this answer
 
Comments
Mạnh Lê 10-Dec-14 23:26pm    
Thank for your information.
Maciej Los 11-Dec-14 1:41am    
You're very welcome ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900