views:

238

answers:

1

Hey guys 'n gals,

Anyone know how to specify a custom record delimiter in a schema.ini file? I need to import some data for an old system, and the source file uses pipes (|) as field delimieters and tilda's (~) as row delimiters. I've managed to get the field delimiters configured. Row delimiters anyone?

The current schema.ini file...


[sourcefile.txt]
ColNameHeader=false
Format=Delimited(|)
CharacterSet=ANSI
Col1=F1 text
Col2=F2 text
Col3=F3 text
Col4=F4 text
Col5=F5 text
...

Oh, and yes, it has to be done this way. I can't work around it by importing it through some other means...

A: 

no chance: see the grammar of ODBC text driver text files, especially these 2 lines:

delimited-text-line ::=
   blank-line |
   delimited-data [delimiter delimited-data]... end-of-line
end-of-line ::= <CR> | <LF> | <CR><LF>

ie. no setting for a custom row separator. also, no string anywhere related in the dll ...

ax
Well, that settles that.... I suspected this was the case, but thought I'd give it a go anyway. That's for clearing that up.
HisRoyalRedness