使用通过ODBC实用程序创建的数据源进行数据库连接 [英] Database connection using datasource created through ODBC utility

查看:89
本文介绍了使用通过ODBC实用程序创建的数据源进行数据库连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

如何在程序的连接字符串中调用通过管理工具-> ODBC实用工具创建的MS ACCESS ODBC数据源.我现在正在做的事情如下所示

connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\*.mdb;"


是否可以在此处提及使用该实用程序创建的数据源名称

Hi All,

How to call the MS ACCESS ODBC datasource created with Administrtive Tools->ODBC Utility in connection string of a program.What i am doing right now is as below

connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\*.mdb;"


Is it possible to mention the datasource name created using the utility here

Please help!!!

推荐答案

是的,这很有可能.
请参见 http://www.connectionstrings.com/dsn [
Yes it is quite possible.
See http://www.connectionstrings.com/dsn[^].


使用以下连接字符串:

Use Following Connctionstring:

connectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Documents and Settings\\Administrator\\My Documents\\Visual Studio 2008\\Projects\\Database name.mdb";  


这篇关于使用通过ODBC实用程序创建的数据源进行数据库连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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