OLEDB .....的插入命令后,值未永久保存. [英] Value are not saving permenently after insert command of OLEDB .....

查看:75
本文介绍了OLEDB .....的插入命令后,值未永久保存.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将值插入数据库,直到应用程序运行为止....关闭应用程序后,所有插入的值都将被删除...

Values are getting inserted to database till application is running .... after closing application all inserted values get deleted...

推荐答案

为您提供的一些信息检查:
1)当您说插入数据库"时,您如何检查?您是否已对表进行数据绑定,并假定对该表的更改将自动反映在数据库中?还是您使用SQL Server Management Studio查看了数据库内容?
2)您正在使用交易,而忘记了进行交易吗?
3)数据库在您的项目中是否为文件?如果是这样,您是否将其属性设置为始终复制"?
A few things for you to check:
1) when you say "inserted to database" how have you checked? Have you databound a table, and assumed that changes to the table will automatically be reflected in the DB? Or have you looked at the database content using SQL Server Management Studio?
2) Are you using transactions, and have forgotten to Commit them?
3) Is the database in your project as a file? If so, do you have it''s properties set to "Copy always"?


m使用Access Database,将数据插入数据库时​​被插入....我已经验证通过打开数据库,当我重新启动应用程序时,db中什么也没有...每次都会发生...
m using Access Database, When insert data into database in get inserted .... this i have verified by opening database, when i restart my application there is nothing in db... this happens everytime...


这篇关于OLEDB .....的插入命令后,值未永久保存.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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