• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Access Operation Using ADOX and OleDb(C#操作Access数据库)

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

  Now, we are talking something about Office Access(2007) operation using C#. And I will show you how to create a access db file, including creating new table, insert and update data item. Before we start coding, we should add references "Microsoft ADO Ext. 2.8 for DDL and Security" and "Microsoft ActiveX Data Objects 2.8 Library", and of course the related namespace.

  1. Create new Access database using ADOX:

}

  2. Next we will create a new table with several columns for this database, first we try to use ADOX:

}

  3. And we can also use OleDb command to create new table, let's have a look:

}

  4. Following are 'insert', 'query', 'update' and 'delete' operations:

}

 

I have already had a test for all the functions, if you get any problem please let me know.

 

Go to my home page for more posts


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
适配器模式 C#发布时间:2022-07-10
下一篇:
asp.net能实现身份认证的EMAIL发送方法(c#版本)发布时间:2022-07-10
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap