当前位置:网站首页>Operate access database based on WinForm of C (at the end of MDB)
Operate access database based on WinForm of C (at the end of MDB)
2022-07-27 06:08:00 【The moonlight is shining】
Access Database operation
To configure App.config file
Here is no user password , Public database connection string ;Data Source= database .mdb It needs to be modified according to the specific database location
<appSettings>
<add key="access.DB" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source= database .mdb;Persist Security Info=False"/>
</appSettings>
The connection string with user name and password is written as follows :
string connstr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= route +// Database name .mdb;Jet OLEDB:Database Password= password ;User Id= user name ";
stay SQLHelper Get the corresponding connection string
Assembly import required :using System.Configuration;
public static string connStr = ConfigurationManager.AppSettings["access.DB"];
See the links below for specific operations
边栏推荐
- Day 3. Suicidal ideation and behavior in institutions of higher learning: A latent class analysis
- C语言扫雷最新 递归展开 超详解(附源码)
- 哈夫曼树的求法,代码实现及证明,图文解释
- PZK学C语言之数据类型,进制转换,输入输出,运算符,分支语句ifelse
- QGIS系列(1)-QGIS(server-apache) win10安装
- Baiwen driver Daquan learning (I) LCD driver
- Leetcode每日一题30. 串联所有单词的子串
- 这是我的博客
- c语言-线性顺序表
- 一张图看懂指针
猜你喜欢

Li Kou 236. the nearest common ancestor of binary tree

Osg环境搭建(Win10+Vs2019)

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

Lightroom classic 2022 v11.4 Chinese version "latest resources"

力扣每日一题 剑指 Offer II 091. 粉刷房子

非真实感渲染(NPR)论文理解及其复现(Unity) - 《Stylized Highlights for Cartoon Rendering and Animation》
哈夫曼树的求法,代码实现及证明,图文解释

QGIS系列(1)-QGIS(server-apache) win10安装

能替代ps的修图软件?

Greedy high performance neural network and AI chip application research and training
随机推荐
链表回文判断
What has been updated in the Chinese version of XMIND mind map 2022 v12.0.3?
力扣第一周错题集
Li Kou 236. the nearest common ancestor of binary tree
AE 3D particle system plug-in: Trapcode particle
Live Home 3D Pro室内家居设计工具
哈希表的原理及哈希冲突的解决方法
Unity Shader 概述
Force buckle 160. intersecting linked list
[song] rebirth of me in py introductory training (10): numpy
编程学习记录——第7课【函数】
[first song] rebirth of me in py introductory training (3): if conditional sentence
[first song] rebirth of me in py introductory training (4): Circular program
解决conda install 安装停止、中断问题
IOT operating system
c语言-线性顺序表
韦东山 数码相框 项目学习(四)简易的TXT文档显示器(电纸书)
PZK学C语言之字符串函数(一)
物联网操作系统多任务基础
力扣 110. 平衡二叉树