节点文献

ODBC数据源动态配置原理及其实现研究

Principle and Realization of ODBC Data Source Dynamic Configuration

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 鞠儒生乔海泉黄柯棣

【Author】 JU Ru-sheng,QIAO Hai-quan,HUANG Ke-di(The Mechanical Engineering & Automation College of National University of Defense Technology,Changsha Hunan 410073.China)

【机构】 国防科技大学机电工程与自动化学院国防科技大学机电工程与自动化学院 湖南长沙410073湖南长沙410073

【摘要】 针对计算机仿真过程中经常需要访问不同类型数据库,而利用开放式数据库连接并手动配置数据源容易出错的问题,提出了在程序中进行ODBC数据源动态配置的方法。分析了W indows平台下ODBC数据源配置的三种基本方式及其对应的实现原理。介绍了两种实现动态配置的途径并确定了直接修改注册表的函数方法。以O racle数据库应用为例,利用环境变量查找O racle数据库驱动程序存放路径,创建了对应的系统数据源。最后给出了完整的基于VC++6.0实现数据源动态配置的源代码。

【Abstract】 Towards the fallible problem of accessing different type of databases by configuring Open Database Connection(ODBC) data source manually during computer simulation process,the paper presents a method of ODBC data source dynamic configuration in program.It analyzes three modes and principles of ODBC data source configuration by using the platform of windows.Besides,it introduces two paths to realize the dynamic data source configuration.It chooses the method of modifying the register table directly.Based on the application of Oracle,it describes the approach to find the database driver by utilizing the environment variables.Then it founds the related system data sources.Finally,it gives the integral program codes of dynamic data source configuration based on VC++6.0.

  • 【文献出处】 计算机仿真 ,Computer Simulation , 编辑部邮箱 ,2006年07期
  • 【分类号】TP311.13
  • 【被引频次】40
  • 【下载频次】151
节点文献中: 

本文链接的文献网络图示:

本文的引文网络