Page 1 of 1
					
				MyConecction.ApplyUpdates?
				Posted: Fri  29 Jan 2016 06:35
				by cybsistemas
				Using Delphi XE7 with MyDAC 8.6.20. The database is in an on VPS with Centos  7 and MySQL 5.6.27. The problem I have is that after an INSERT statement close the application and the information is not saved. What statement can be used to force the program to save the changes to disk ?.
Thank you
			 
			
					
				Re: MyConecction.ApplyUpdates?
				Posted: Fri  12 Feb 2016 11:12
				by ViktorV
				If you change data (e.g., insert, update, delete), it is always saved in a database automaticly, unless you use transactions. But if you execute the StartTransaction method, then to save data to a database, you should execute the Commit method.
There are several hints that may help to determine the reason of data lost: 
- if you are using CachedUpdates=True, check that you perform ApplyUpdates; 
- if you are using the FetchAll=False mode, note that committing transactions in the main session will not save changes. For more information, please read the FetchAll property description in the MyDAC documentation: 
https://www.devart.com/mydac/docs/?deva ... chall.htm.