使用代码连接到Access数据库 [英] Connecting to access database using code

查看:102
本文介绍了使用代码连接到Access数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名学生如何使用代码(不使用向导)连接到Access数据库并在c#的文本框中检索值 使用Visual Studio 2008.

I am a student How to connect to access database using code ( not using wizard) and retrive values in the textbox in c# using visual studio 2008.

我必须从访问数据库中提取3个字段.

I have to extract 3 fields from the access database.

有人知道吗?请帮助.

推荐答案

OleDbConnection 是查询Access数据库的标准类. 这是一个示例.

OleDbConnection is the standard class to query an Access database. Here's an example.

这篇关于使用代码连接到Access数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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