如何在创建安装程序后udadet .exe文件的数据库 [英] how to udadet database of .exe file after creating setup

查看:70
本文介绍了如何在创建安装程序后udadet .exe文件的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生......



实际上我正在为任何比赛考试创建一套练习纸套餐桌面应用....

巫婆他想要在他自己的系统上创建问题后,在执行.exe之后,他给同一个exe给学生解决这些问题后写入cd ........



i认为这是非技术性的概念但是如果.exe文件的数据库更新来自那个系统的数据库,那么它就是可能的....

sir......

actually i am creating a desktop application for practice paper set for any compition exam....
in witch he wants that he create the question on his own system after instoling .exe and after that he give same exe to students for solving these question after writing in cd........

i think this is non technical consept but if .exe file''s database update from that system where it is instol than it can be possible....

推荐答案

这取决于您为应用程序使用的数据库类型。这里有两种数据库我想注意:



1.基于文件的数据库,这很容易更新,只需复制并粘贴到正确的位置,这些示例包括Access数据库文件(* .mdb),SQLite(* .sdb或任何,扩展名不受限制),SQL Server CE(* .sdf),...



2.基于服务的数据库,这有点棘手,您必须删除旧数据库,将新数据库附加到服务器,或使用还原功能(如果更新的数据库文件是备份) ,或者如果您的应用程序支持连接到多个数据库,只需创建一个新连接以附加更新的数据库。这些示例包括MS SQL Server(* .mdf和带有* .ldf的日志文件),MySQL,Oracle,......





我想你的更新数据库与旧数据库具有相同的结构。 (这意味着更新仅包含新数据,不涉及新结构)。
That depends on what kind of database you used for your application. There are 2 kinds of database here I want to notice:

1. File-based database, this is very easy to update, just copy and paste to the correct location, examples of these are Access database file (*.mdb), SQLite (*.sdb or any, the extension is not restricted), SQL Server CE (*.sdf),...

2. Service-based database, this is a little trickier, you have to remove the old database, attach the new one to the server, or using restore function (if the updated database file is a backup), or if your application supports connecting to multi databases, just create a new connection to attach the updated database. Examples of these are MS SQL Server (*.mdf and the log file with *.ldf), MySQL, Oracle, ...


I suppose your updated database has the same structure to the old one. (it means the update inludes only new data, not involving new structure).


这篇关于如何在创建安装程序后udadet .exe文件的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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