|
Can I use SQL server driver for MS Access?? Is that what you are suggesting?? If so, then have you tried this successfully?? Can you provide me the snippet of the code?? Thanks, Rajesh Anand Email:Rajesh_anand@xxxxxx -----Original Message----- From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Vincenzo Amoruso Sent: 31 January 2006 11:20 To: Java Programming on and around the iSeries / AS400 Subject: R: Accessing MS Access from Java on iSeries Try at this url for accessing with type 4 db driver : http://jtds.sourceforge.net/ Here a sample including jtds-1.2.jar in iSeries classpath <sample> import java.sql.DriverManager; import java.sql.Connection; import java.sql.SQLException; public class TrySqlServer { public static void main(String[] args) { Connection cn = null; try { try { Class.forName( "net.sourceforge.jtds.jdbc.Driver" ); System.out.println("OK Driver"); } catch (ClassNotFoundException e) { e.printStackTrace(); } cn = DriverManager.getConnection( "jdbc:jtds:sqlserver://ip:1433/myDB", "sa" , "" ); System.out.println("Connection OK"); } catch (SQLException e) { e.printStackTrace(); } } } </sample> Hope this helps! Regards Vincenzo Amoruso Co-Founder & Ceo System Project s.r.l. Via De Giosa, 39 70031 Andria(BA) Italy Tel. +39(0)883 566 648 mail : info@xxxxxxxxxxxxxxxxx http://www.system-project.it Projects References : http://www.system-project.it/IT/novita.html http://www.netjug.com -----Messaggio originale----- Da: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx]Per conto di Anand, Rajesh Inviato: martedi 31 gennaio 2006 11.44 A: java400-l@xxxxxxxxxxxx Oggetto: Accessing MS Access from Java on iSeries Folks, Have been through the archives but have not found anything conclusive. Does anyone have any idea how this can accomplished?? This is an old age problem where we need to feed data to MS Access and we need to provide an automated solution from iSeries. I know its has been debated in the past but want to know is, if there are any MS jar files available to use on iSeries using Java. Thanks for your help in advance. Rajesh Anand Email:Rajesh_anand@xxxxxx -------------------------------------------------------- If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/ -------------------------------------------------------- -- This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/java400-l or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.