
Help needed with MS ODBC - Text driver and BDE
Just drop a TTable component, set TableType to ttAscii and fill tablename
property. To make it work properly you only have to create the schema file
(structure info file)
TABLE1.TXT - database file
TABLE1.SCH - schema file looks like:
[TABLE1]
FileType=Fixed
;or
FileType=delimited
;lang driver
CharSet=ANSIINTL
Delimiter="
Separator=,
;follow the fields in format:
FieldXX=<Name>,<type>,<length>,<decimals>,<line offset>
Field1=K_STATUS,Char,01,00,00
Field2=Name,Char,10,00,01
If you allready have a table with that structure (in msssql), you can borrow
structure from it and let BDE create the schema file for you:
TextTable.FieldDefs.Assing(mssqltable.fielddefs);
TextTable.CreateTable;
For more info search borland site for TI about ascii files.
--
----------------------
Regards
Robert Cerny
Remove both qwe when replying
No questions via email, unless explicitly invited.
Quote:
>Hi,
>I'm trying to import a machine generated ASCII list into a real
>database (MSSQL7 via MS SQL ODBC driver and bde)
>because I didn't want to hard-code the text parser myself, I just
>wanted to use the MS-Text driver or maybe the BDE ASCIIDRV
[snip]