Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
Although I haven't managed to get the file DSN working correctly, I have been able to do the same thing, more or less, using a DSN-less connection & specifying everything in a connection string - the code which works is: import java.sql.*; public class TestAccess private static Connection conn; public static void main(String[] args) conn = DriverManager.getConnection(dbsrc, "", ""); stmt = conn.createStatement(); while(results.next()) For some reason, this works fine, though I would still be very interested if anyone has the answer as to how this same information can be read from the DSN file (as it should be!). However, hopefully someone else out there will find this information useful.
Replies: |
Sponsored Links
|