Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
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
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT Text(CSV)
Validation of CSV
Johnathan
2016-04-27 11:32:03.0
Dear Sir/Madam,

I am contacting you in regards to the HXTT Text (CSV) JDBC 3.0 Package.

My question is if there is a method to validate the CSV file and report the problems, prior to executing the select statements on a CSV file.

If there is no such possibility, can you recommend a way to check if a CSV is valid (maybe the parser / query does not raise an error even if there is one). Or even by using a third party tool.

Thank you for your time and assistance.

Best regards,

Johnathan
Re:Validation of CSV
HXTT Support
2016-04-28 06:41:55.0
>My question is if there is a method to validate the CSV file and report the problems, prior to executing the select statements on a CSV file.
CSV file will be validated when it load."Select count(*) from acsvfile" will check that file.

ignoreDirtyData connection property: Indicates whether ignores all dirty data and return null value when failed to parse number value or date value. You can use the following code to know where's dirty data in your file.

warnings=rs.getWarnings();
if(warnings!=null){
do{//SQState: C0106 Convert dirty data into null value
System.out.println(warnings.getMessage());
System.out.println("Error Code:"+warnings.getErrorCode());
System.out.println("SQL State:"+warnings.getSQLState());
}while((warnings=warnings.getNextWarning())!=null);
rs.clearWarnings();
}

Default value: false


Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap