Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 7.1.142
  HXTT Cobol 5.0.142
  HXTT DBF 7.1.143
  HXTT Excel 6.1.146
  HXTT Json 1.0.114
  HXTT Paradox 7.1.142
  HXTT PDF 2.0.142
  HXTT Text(CSV) 7.1.142
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Word 1.1.142
  HXTT XML 4.0.143
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT Text(CSV)
Lexical Error
Chad
2013-03-26 09:45:43.0
Using ColdFusion 10

Lexical error: :/MMLData/D01/MML/000000/layouts/test.csv

The error occurred in C:/inetpub/wwwroot/edit.cfm: line 1

1 :
2 : SELECT * from D:/MMLData/D01/MML/000000/layouts/test.csv
3 :


JDBC URL: jdbc:csv:///?_CSV_Header=true;
Driver Name: com.hxtt.sql.text.TextDriver

Re:Lexical Error
HXTT Support
2013-03-26 13:06:07.0
Try "SELECT * from "D:/MMLData/D01/MML/000000/layouts/".test
Re:Re:Lexical Error
Chad
2013-03-26 22:35:09.0
Ok that worked sort of. I have a file that has no header record. Here is the error I receive:

Error Executing Database Query.
The table structure of Text Table D:/MMLData/D01/MML/000000/layouts/test.dmt is unknown. Please use CREATE TABLE to define a table structure once.

The error occurred in C:/inetpub/wwwroot/edit.cfm: line 1

1 :
2 : SELECT * from "D:/MMLData/D01/MML/000000/layouts/test.dmt"
3 :


Here is a sample of file:

FNAME,30,c,First Name
MI,1,c,Middle Initial
LNAME,30,c,Last Name
ADD1,50,c,Address 1

Here is the URL string:

jdbc:text:///?_CSV_Header=false;maxScanRows=5

Thanks.

Chad
Re:Re:Lexical Error
HXTT Support
2013-03-26 22:37:09.0
>jdbc:text:///?_CSV_Header=false;maxScanRows=5
>2 : SELECT * from "D:/MMLData/D01/MML/000000/layouts/test.dmt"
You should use
jdbc:text:///?_CSV_Header=false;maxScanRows=5;csvfileExtension=dmt
Re:Re:Re:Lexical Error
HXTT Support
2013-03-26 22:39:09.0
If you use jdbc:csv:... , not jdbc:text:
For instance,
jdbc:csv:///?_CSV_Header=false;maxScanRows=5

Then your
SELECT * from "D:/MMLData/D01/MML/000000/layouts/test.dmt"

can work normal too.

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap