Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v6.1
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT DBF
HXTT DBF GetTables()
Chris Durham
2011-03-11 02:17:52.0
Does the HXTT DBF Driver version 4.2 support the DatabaseMetaData function getTables? I am having some problems getting a list of tables - I am using the following code :-

Class.forName("com.hxtt.sql.dbf.DBFDriver");
Connection dbfCon = DriverManager.getConnection(props.getProperty("DBFConnection"), props);

Statement s = dbfCon.createStatement();
s.execute("SELECT * FROM M_XWOHDR");
ResultSet rs = s.getResultSet(); // correct ResultSet returned and useable as expected

DatabaseMetaData dmd = dbfCon.getMetaData();

ResultSet tableRS = dmd.getTables(dbfCon.getCatalog(), null, "%", null); // returns an empty ResultSet

Any help would be appreciated


Re:HXTT DBF GetTables()
HXTT Support
2011-03-11 03:55:40.0
>Does the HXTT DBF Driver version 4.2 support the DatabaseMetaData function
>getTables?
Supports.
>ResultSet tableRS = dmd.getTables(dbfCon.getCatalog(), null, "%", null); // returns an empty ResultSet
You can try
ResultSet tableRS = dmd.getTables(null, null, "%", null);
If you still failed, please let us know your jdbc url. Or download the latest v4.2.211 to recur.
Re:Re:HXTT DBF GetTables()
Chris Durham
2011-03-11 05:10:50.0
Hi Thanks for the answer - it would seem that it works fine using a standard url - ie jdbc:dbf://///server/dir/dir but not if I use a SMB url ie jdbc:dbf:smb://domain;username:password@server/dir/dir

Re:Re:Re:HXTT DBF GetTables()
HXTT Support
2011-03-11 15:23:09.0
>jdbc:dbf:smb://domain;username:password@server/dir/dir
You can try jdbc:dbf:smb://domain;username:password@server/dir/dir/ .

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap