【问题标题】:Is SQuirreL SQL Client compatible with QODBC?SQuirreL SQL 客户端与 QODBC 兼容吗?
【发布时间】:2014-02-06 08:07:16
【问题描述】:

有谁知道 SQuirreL SQL 客户端是否与 QODBC 兼容?如果没有,是否有 SQuirreL 的插件可以启用?

任何见解都将不胜感激,因为我从未使用过。

【问题讨论】:

  • 您需要一个用于 QuickBooks 的 JDBC 驱动程序。

标签: mysql jdbc odbc jdbc-odbc squirrel-sql


【解决方案1】:

使用 Java ODBC 桥产品的 QODBC 驱动程序示例

注意:以下是我们一位满意的客户提供的一些示例代码:

// 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");

【讨论】:

  • 与 SQuirreL SQL 或 QODBC 没有直接关系,但仍然很有帮助。
【解决方案2】:

【讨论】:

  • 虽然链接可能有用,但最好在此处包含主要部分,然后使用链接作为参考,因为更改链接会使您的答案无效。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-01-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-08-25
相关资源
最近更新 更多