Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : Can I use your QODBC Driver with the Java ODBC Bridge product from Sun?Search Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC Frequently Asked Questions

 New Topic 
 
 Post Reply 
 Can I use your QODBC Driver with the Java ODBC Bridge product from Sun? 
 Author   Message 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-02-22 12:49:19

Yes, here is some example code from one of our happy customers:

// QuickBooks variables
Connection con =null;
Statement stmt = null;
ResultSet rs = null;

// parameters for QuickBooks database
static final String url = "jdbc:odbc:quickbooks";
// quickbooks is a System DSN that is the name of the QODBC driver
// On WindowsXP it can be set up at Control Panel > Administrative Tools >
// Data Sources (ODBC)

static final String driver = "sun.jdbc.odbc.JdbcOdbcDriver";

public static void main(String[] args) throws Exception {
InsertCustomers t = new InsertCustomers();
}

public InsertCustomers() throws Exception {
try {
Class.forName(driver);
con = DriverManager.getConnection(url);
stmt = con.createStatement();
System.out.println("Querying QB customer table");
rs = stmt.executeQuery("SELECT * FROM customer");
// rest of code deleted

 

  Top 
 New Topic 
 
 Post Reply 

Jump to