无法从Microsoft Visual C ++ 6.0打开与MS ACCESS数据库的DB连接 [英] Not able to open DB connection to MS ACCESS DB from Microsoft visual C++ 6.0

查看:76
本文介绍了无法从Microsoft Visual C ++ 6.0打开与MS ACCESS数据库的DB连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



- >我正在使用microsoft Visual C ++ 6.0构建c ++应用程序



- >当我从安装程序安装应用程序并从已安装的实例运行它时它工作正常并且能够在路径中的MS访问DB执行数据库操作: C:\Program Files(x86)\ Mycompany \ SUSClient \Database\Host.mdb



问题陈述是当我尝试从Microsoft的解决方案运行应用程序时Visual C ++ 6.0,应用程序无法打开与DB的连接



Db连接如下:



Provider = Microsoft.Jet.OLEDB.4.0;



错误代码说..它的 com_error



请告诉我你的担忧。



谢谢&此致,

Goutham KD



我的尝试:



无法从Microsoft Visual C ++ 6.0打开数据库连接到MS ACCESS数据库

Hello All,

-> I am having c++ application built using microsoft Visual C++ 6.0

-> when i install the application from installer and run it from the installed instance its working fine and able perform DB operation with MS access DB which is in the path: C:\Program Files (x86)\Mycompany\SUSClient\Database\Host.mdb

The problem statement is when i try to run the application from the Solution of Microsoft Visual C++ 6.0, the application fails to Open connection to the DB

Db connection as below:

Provider=Microsoft.Jet.OLEDB.4.0;

Error Code says that.. Its com_error

Kindly let me know your concerns on the same .

Thanks & Regards,
Goutham K D

What I have tried:

Not able to open DB Connection to MS ACCESS DB from Microsoft Visual C++ 6.0

推荐答案

连接字符串似乎不完整。请检查:访问连接字符串 - ConnectionStrings.com [ ^ ]



详情请见:

Visual C ++中的数据访问 [ ^ ]

OLE DB编程 [ ^ ]
Connection string seems to be incomplete. Check this: Access connection strings - ConnectionStrings.com[^]

For further details, please see:
Data Access in Visual C++[^]
OLE DB Programming[^]


更好地为每个人提供对db文件夹的读写权限,并提供您所面临的错误的完整详细信息。 />




问候

AravindB
Better give read and write permission for everyone to db folder,and provide full details of error that u face.


Regards
AravindB


这篇关于无法从Microsoft Visual C ++ 6.0打开与MS ACCESS数据库的DB连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆