简体   繁体   English

使用c#将Access数据库添加到Visual Studio 2010中的项目中

[英]Adding Access Database to Project in Visual Studio 2010 using c#

How i can Add an access database file to my project? 如何将Access数据库文件添加到我的项目中? i try to do by add-->add datasource and changing the name of data source in conncetion string but when i edit or delete or add data.. this changes does not save 我尝试通过添加->添加数据源并更改连接字符串中数据源的名称来执行此操作,但是当我编辑或删除或添加数据时。此更改不会保存

See :

  1. In Server Explorer, right-click Data Connections and click Add Connection. 在服务器资源管理器中,右键单击“数据连接”,然后单击“添加连接”。

  2. In the Data Link Properties dialog box, click the Provider tab. 在“数据链接属性”对话框中,单击“提供程序”选项卡。

  3. Click the Microsoft Jet 4.0 OLE DB Provider, then click Next. 单击Microsoft Jet 4.0 OLE DB提供程序,然后单击下一步。

    4.Click the ellipsis (...) button to browse to the Microsoft Access (.mdb) file you want to access. 4.单击省略号(...)按钮浏览到要访问的Microsoft Access(.mdb)文件。

    5.Type the User ID to use for authentication when you log on to the data source. 5.键入登录到数据源时用于身份验证的用户ID。

  4. Type the Password to use for authentication when you log on to the data source. 键入登录到数据源时用于身份验证的密码。 Click OK. 单击确定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM