Recommendation for Embedded DB with External ODBC Access?

﹥>﹥吖頭↗ 提交于 2019-12-24 03:08:15

问题


Is there a database that can be embedded in a Java program but also allow access through ODBC; more specifically, ODBC through ADOdb?

The environment is MS Windows (XP on).

The situation is that a Java program (mine) runs an external program (not mine) that uses an ADOdb.Connection object to connect to the embedded database and extract data. Oh, legacy support.

I've been trying to set this up using Derby (i.e. JavaDB/Cloudscape) and the NetworkServerControl object, but cannot figure out how to configure the System DSN such that an ADODB.Connection object can connect. Chances are I'm doing it wrong, but I can't figure out how to specify the path to the Derby files.

Is there an embedded db that can be accessed in this manner? Preferably one (unlike Derby) that doesn't require unsupported third-party drivers for ODBC access?

Alternatively, am I going about this completely wrong? I'm not very conversant with databases, nor ADOdb or .NET in general.


回答1:


H2 stated a ODBC driver on the features list (but still experimental).



来源:https://stackoverflow.com/questions/8496668/recommendation-for-embedded-db-with-external-odbc-access

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!