前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Connecting to a eXtremeDB「建议收藏」

Connecting to a eXtremeDB「建议收藏」

作者头像
全栈程序员站长
发布2022-11-04 17:39:58
1920
发布2022-11-04 17:39:58
举报

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

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2022年10月14日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
云数据库 MySQL
腾讯云数据库 MySQL(TencentDB for MySQL)为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。其具备6大企业级特性,包括企业级定制内核、企业级高可用、企业级高可靠、企业级安全、企业级扩展以及企业级智能运维。通过使用腾讯云数据库 MySQL,可实现分钟级别的数据库部署、弹性扩展以及全自动化的运维管理,不仅经济实惠,而且稳定可靠,易于运维。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档