2014-02-06 7 views
0

SQUirreL SQL 클라이언트가 QODBC와 호환되는지 알고있는 사람이 있습니까? 그렇지 않다면 SQuirereL을위한 플러그인이 활성화되어 있습니까?SQUirreL SQL 클라이언트는 QODBC와 호환됩니까?

아무런 통찰력도 없을 것입니다.

+1

대신 QuickBooks에 대한 JDBC 드라이버가 필요 : 다음은 우리의 행복한 고객 중 하나에서 몇 가지 예제 코드는 . –

답변

0
자바 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"); 
+0

SQuirreL SQL 또는 QODBC에 직접 관련된 것은 아니지만 여전히 도움이되었습니다. – James