Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  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 ACCESS
timezone issue with bulk insert from different driver resultset
Laura Irimiciuc
2010-02-23 01:09:58.0
Hi,

For exporting data from SQL Servet to Access, we are using this snippet of code:

String sql = "insert into [" + ACCESS_TABLE_NAME+ "] ?;";
pstmt = accessConnection.prepareStatement(sql);
pstmt.setObject(1, eimRs);//insert a sqlserver resultSet into destination table
pstmt.executeUpdate();

An old driver (Implementation-Version: 1.1.039 on May 16, 2006) inserted datetime fields with GMT timezone, but after upgrading to last hxtt access driver (Specification-Version: 3.2.121 on January 31, 2010), we noticed this driver version uses JVM's timezone. Is there a specific reason for this change? And is there some workaround to use GMT timezone and preserve this bulk insert approach ?
Re:timezone issue with bulk insert from different driver resultset
HXTT Support
2010-02-23 06:49:04.0
>Is there a specific reason for this change?
Some customers require using local timezone as default timezone.

> And is there some workaround to use GMT timezone and
> preserve this bulk insert approach ?
timezone=GMT connection property.
Re:Re:timezone issue with bulk insert from different driver resultset
Laura Irimiciuc
2010-02-25 22:58:18.0
I tried setting Connection property in two ways:

DriverManager.getConnection("jdbc:access:/\\\\is-host\\Inputs\\a.mdb?timezone=GMT");

or

Properties props = new Properties();
props.setProperty("timezone","GMT");
accessConnection = DriverManager.getConnection("jdbc:access:/\\\\is-host\\Inputs\\a.mdb",props);

But neither of these works..Am I doing smth wrong?

Laura
Re:Re:Re:timezone issue with bulk insert from different driver resultset
HXTT Support
2010-02-26 00:05:31.0
Please download the latest package, then use timezone=local connection property.
Re:Re:Re:Re:timezone issue with bulk insert from different driver resultset
Laura Irimiciuc
2010-02-27 05:33:14.0
Thank you, this solved the problem.

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