如何在VB.NET中更新数据? [英] How to update data in VB.NET?

查看:184
本文介绍了如何在VB.NET中更新数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我已经制作了VB.NET windows窗体应用程序。当我从visual studio运行项目时,它很酷。我在我的电脑上发布并安装了应用程序。我启动了应用程序并成功将数据插入数据库,但它没有更新应用程序中的报告。我重新启动了应用程序,但没有更新。我从服务器检查了数据库,并成功插入了数据。但为什么它没有在应用程序中显示更新?

请帮助。

先谢谢。

解决方案

如果没有您的代码,则无法确定,但首先要检查的是您的数据库未包含在您的VS项目中:如果是,那么很有可能将新版本复制到Debug每次运行该应用程序时的目录 - 这会丢掉你所做的任何更改。



它还取决于什么类型的数据库,你如何访问它(包括你的实际代码),以及你每次检查数据的方式。


Hey, I had made VB.NET windows form application. When i run the project from visual studio it works cool. I published and installed application into my computer. I started the app and inserted data into database successfully but it doesn't updated the reports in the app. I restarted the application but nothing was updated. I checked the database from server and data was inserted successfully. But why it doesn't shows update in application?
Please Help.
Thanks in Advance.

解决方案

Without your code, it's not possible to be sure, but the first thing to check is that your database is not included in your VS project: if it is, then there is a good chance that a new version is copied over to the Debug directory every time you run that app - which would throw away any changes you have made.

It's going to depend also on what kind of DB, how you access it (including your actual code), and how you checked the data was present each time.


这篇关于如何在VB.NET中更新数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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