Crystalreporting:
To clarify where this post may be heading I wold like to put a couple of things on the table.
1. Dont worry about starting an argument. I don't look at your question that way. Simply an exchange/clarification of information that will allow everyone that reads it to become more informed.
2. If your re-read my lenghty post from above (I normally do not post this long), you will need to understand that if something bad occured at 9:15 you would not be able to restore to 9:13. You would only be able to restore up to the trans log that occured at 9:00. On our large DB (we are about 50 users with a very LARGE DB, 14GB or close in Macola). The average 2-hour trans log is between 9000 and 16,000 KB which takes about 15 seconds to run.
3 For the remainder of this reply I will try to use the workd transaction to mean the SQL transaction. Most SQL types use transaction in reference to the actual SQL transactions that occur. Most ERP/Accounting types refer to transactions as the Macola transaction in AP, GL, AR, IM, etc.
So having said that, The transaction log is logging not the Macola transactions but the back-side or SQL transactions that actually occur at the DB level. Knowing that, you can then see that if at 9:00 a person was ENTERING an order into Macola while the bad posting or corruption was occuring and they have not yet savd the order, no SQL transaction has yet occured. When the restore is done up to the 9:00 trans log the Order they were entering will not be in the system and the next order number may even be wrong.
After a restore, the first thing that should be done before normal useage is to have the useres check for work that they think should be in the system. This could include running reports for open items, open orders, GL postings etc etc etc. Then resume normal operations starting with replacing missing entries in their respective modules. In other words the restore would not be 100% of the work that was actually in progress but 100% of the work that had been committed or transacted at the SQL level. This is better than loosing 100% of the work for the entire day, week, month, year or whenever the last good tape could be found.
Also back to the original tempdb error. I have found that Macola is actually reporting this wrong. The fix is to backup the translog for the current data company in use at the time of the error. The tempdb should be on simple recovery. It is usually the translog for the active DB that causes the problem. The tempdb should never be touched with the exception of the normal nightly backup.
Feel free Peter to post anything you need to to get clarification on this. The subject of maintenance plans and backup models in SQL is one of the most important aspects of maintaining the availablility of your Macola data to your end users.
Andy Baldwin
"Testing is the most overlooked programming language on the books!