S
Sebastien Lange
Hi,
I'm inserting a lot of rows in my access db (via odbc) by using bulk insert
from text files.
Schema.ini file exists. It's working fine, until I have spaces at end of
strings: it is trimmed!!!
e.g.:
" Hello World!!! " becomes after insert
" Hello World!!!"
Any idea why and how to avoid it?
Thanks,
Sebastien
Schema.ini contains
[myTable.txt]
Format=Delimited(
CharacterSet=ANSI
ConnectionString:
Driver={Microsoft Access Driver (*.mdb)};DBQ=myDB.mdb
Sql:
INSERT INTO [myTable] SELECT * FROM [Text;DATABASE=c:\temp].[myTable.txt]
I'm inserting a lot of rows in my access db (via odbc) by using bulk insert
from text files.
Schema.ini file exists. It's working fine, until I have spaces at end of
strings: it is trimmed!!!
e.g.:
" Hello World!!! " becomes after insert
" Hello World!!!"
Any idea why and how to avoid it?
Thanks,
Sebastien
Schema.ini contains
[myTable.txt]
Format=Delimited(
CharacterSet=ANSI
ConnectionString:
Driver={Microsoft Access Driver (*.mdb)};DBQ=myDB.mdb
Sql:
INSERT INTO [myTable] SELECT * FROM [Text;DATABASE=c:\temp].[myTable.txt]