在vb.net的debug文件夹上添加访问数据 [英] To add access data on the debug folder of vb.net

查看:86
本文介绍了在vb.net的debug文件夹上添加访问数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..朋友,我在vb.net中开发了一个项目,我已经在访问中创建了一个名为db_SmartData的数据库,并进一步在该数据库中创建了一个名为tb_Server的表,现在我想将此数据库添加到此应用程序的debug文件夹中这是因为当我构建应用程序时,访问权限数据库会自动与安装应用程序的应用程序一起使用.实际上,关于这一切的真正目的是,我将服务器的信息存储到tb_Server表中,并建立一个静态访问字符串,仅当程序在任何计算机上首次运行时,才从该表中获取数据,然后它将从服务器中检查服务器.如果访问表名为tb_Sever不存在,它将要求用户保存服务器名称.因此,请帮助我如何制作访问数据库和表并将其添加到应用程序的调试文件夹中并与其建立连接.

Hi.. friends I have a project developed in vb.net and I have created a database in access named db_SmartData and further make a table into this database named tb_Server now I want to add this database into the debug folder of this application this because when I build the application the database of access automatically go with the application where I install the application. Actually my real purpose about all this is that I store into tb_Server table the information of the server and make a static connection string with access only fetch data from this table if the program run first time on any machine then it will check the server from the access table named tb_Sever if it is not exist then it will ask to user to save the server name. So please help me how I can make a access database and table and add it in to debug folder of the application and make a connection with it.

推荐答案

1- add您的数据库到您的项目
2-右键单击它并选择属性
3-将其设置为始终复制到输出文件夹
1- add your database to your project
2- right click on it and choose properties
3- set it to be copied allways to out put folder


这篇关于在vb.net的debug文件夹上添加访问数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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