微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Connecting to a eXtremeDB「建议收藏」

The eXtremeDB ODBC driver can connect to an eXtremeDB databasein two manners. The first (which we recommended) assumes that the driver actslike a Remote sql client. This is a thin client that serializes sql queries anddeserializes the results via a TCP connection to the eXtremesql server. Forexample, you may use the xsqlcmd utility or sample xsql, or a customapplication with sql server enabled.

Secondly, the eXtremeDB ODBC driver can open a database locallyin shared memory. In this case a process which loads the ODBC driver in itsmemory space does direct access to the database in shared memory. In this casea crash of the application (or terminating it inside an opened transaction) cancause corruption of the database.

Both database access methods are described in “Chapter 7:McObject ODBC Driver” of the eXtremesql User Guide. Practically, themethod of database access depends on the string “DSN=…;” in the ODBCconfiguration file. If the DSN string has a TCP address semantic like ‘192.168.1.1:5000’or ‘localhost:5000’ (here the substring “:port_number” indicates anaddress), then the ODBC driver acts as a Remotesql client and tries to connectto the specified address. When the DSN string specifies just a name with no ‘:’symbol, the ODBC driver tries to connect to a local database in shared memoryby that name.

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/181953.html原文链接:https://javaforall.cn

原文地址:https://cloud.tencent.com/developer/article/2151979

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐