当前位置:网站首页>基于C#的Winform对Access数据库进行操作(mdb结尾)
基于C#的Winform对Access数据库进行操作(mdb结尾)
2022-07-27 05:20:00 【月光在发光】
配置App.config文件
此处为无用户密码,公开性数据库连接字符串;Data Source=数据库.mdb需要根据具体数据库位置进行修改
<appSettings>
<add key="access.DB" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=数据库.mdb;Persist Security Info=False"/>
</appSettings>
带有用户名密码的连接字符串写法如下:
string connstr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=路径+//数据库名.mdb;Jet OLEDB:Database Password=密码;User Id=用户名";
在SQLHelper中获取对应的连接字符串
需要导入程序集:using System.Configuration;
public static string connStr = ConfigurationManager.AppSettings["access.DB"];
具体的操作可以看下方链接
链接: C#从Access数据库中读取文件.
边栏推荐
- 文件的路径
- SoK: The Faults in our ASRs: An Overview of Attacks against Automatic Speech Recognition (题目过长)阅读笔记
- [Haowen planting grass] knowledge of root domain name - Ruan Yifeng's Weblog
- LaTeX中多个公式公用一个序号时
- 【头歌】重生之我在py入门实训中(6):函数的定义与应用
- 【头歌】重生之我在py入门实训中(8): 模块
- Unittest套件与运行器
- [first song] Introduction to data science of rebirth -- return to advanced level
- Live Home 3D Pro室内家居设计工具
- Super remote connection management tool: Royal TSX
猜你喜欢
![[Haowen planting grass] knowledge of root domain name - Ruan Yifeng's Weblog](/img/75/8f41db9f9c077b43751d63b7b5b57e.png)
[Haowen planting grass] knowledge of root domain name - Ruan Yifeng's Weblog

19. Up and down sampling and batchnorm

Xmind 思维导图 2022 v12.0.3中文版更新了哪些内容?

安装windows下的redis

制作视频后期特效需要什么工具?

8. Mathematical operation and attribute statistics

发布 分辨率0.22m的建筑物分割数据库

Day 3. Suicidal ideation and behavior in institutions of higher learning: A latent class analysis

Essential tool for making video special effects: nuke 13

Auto Encoder(AE),Denoising Auto Encoder(DAE), Variational Auto Encoder(VAE) 区别
随机推荐
socket编程二:使用select
神经网络参数初始化
pytorch使用data_prefetcher提升数据读取速度
Stm32-fsmc extended memory SRAM
What tools are needed to make video post effects?
常见的SQL优化方法
【头歌】重生之我在py入门实训中(1)
李宏毅 2020 深度学习与人类语言处理 DLHLP-Conditional Generation by RNN and Attention-p22
【12】理解电路:从电报机到门电路,我们如何做到“千里传信”?
[concurrent programming series 9] priorityblockingqueue, delayqueue principle analysis of blocking queue
剪枝-量化-转onnx中文系列教程
C语言--字符串操作函数与内存操作函数
2021-06-26
[first song] rebirth of me in py introductory training (2): formula programming
物联网操作系统
pytorch转onnx相关问题
【第一篇博客-展望】
Day 2. Depressive symptoms, post-traumatic stress symptoms and suicide risk among graduate students
Can it replace PS's drawing software?
Weidongshan digital photo frame project learning (IV) simple TXT document display (e-paper book)