有人知道SQuirreL SQL Client是否与QODBC兼容?如果不是,SQuirreL有一个插件可以启用吗?
任何见解都会受到赞赏,因为我从未使用过。
答案 0 :(得分:0)
QODBC支持JDBC - 谢谢! http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/383/0/how-can-qodbc-driver-work-with-the-java-odbc-bridge-product
答案 1 :(得分:0)
使用Java ODBC Bridge产品的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");