Board index » delphi » Briefcase Model
Ian Grant
![]() Delphi Developer |
Sat, 08 May 2004 04:57:57 GMT
Briefcase Model
Using Delphi5/ADO/SQL Server7.
I am developing my first 'Briefcase model'. I have designed it so that, if the locally saved files are found, the connection is to the files, otherwise the connection is to the SQLServer database but with a button to switch from one to the other.. 1. If I start with my app initially connected to the SQLServer database, I click on a button which uses SaveToFile to save the data to the specified files, sets connection on TADODataSets to nil, the close TADOConnection. If I then try to reconnect (at this point the app uses BatchUpdate to update the main database) without closing and reopening my app, I get the message 'Cannot perform a requery after connection has changed.' If I close the app then run it again (using the data in the local files) all is well. 2. If I start my app initially connected to the local files, I click on a 3. I find that my app will only update to the SQLServer if the LockType is Can anyone clarify where I am going wrong with my sequence of events in (1) TIA. |