Crazy question! I know!
Can a database be rebuilt from a point in time? If so how,?
Is it possible to restore a database to a point in time, say August 31, 2008, and then programatically, perform all transactions from that point in time to the present?
Where would one start?
0
Comments
If SQL, how the backup are configured?
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
if you use SQL and you have all backupfiles (min. one fullbackup before the August 31 2008 file and all TransLogBackupfile since the first fullbackup) and u use FULL Backupoption.
If you have NAV it's a little bit more complex.
Regards
On SQL Server.... why would you want to do this? If you are going through all of the trouble to restore a database per August 31st, and then restore all transaction log backups until today (which you would only be able to do if your transaction log chain has not been broken since August 31st by the way... are you willing to make that guarantee?), why not just restore yesterday's backup?
Maye you can explain to us what it is that you want to do, and maybe someone in here has a good suggestion.
RIS Plus, LLC
MVP - Business Apps
i mean it so: if you have more backups (fbk) , like since the 31.Aug.2008 (every day one or two), you can create databases for the needed day (but not for the needed hour of a day like with sql).
But the question is: Why he need it. Or is the 31.08.2008 only an example (i think it is so). With sql it's possibel with Log Backups.
Apparently, this is a common requirement amongst the SQL Server community.
If you're using SQL, the answer is YES. However, you need to have the proper backup (Full, differential, and TLOG). If you're unsure how to do a restore, get a SQL guy to help you.
If you're using Native database and you don't do full backup every hour, then you won't be able to restore up to a particular hour.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
I don't think it is at all common to restore 4 months worth of transaction log backups, that is not a normal scenario at all. I do think there's more to this question.
RIS Plus, LLC
MVP - Business Apps
If done this way, the restore process would be a lot easier.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
My gut feeling says that he is not looking for best practices for SQL Server backup strategies, but for some sort of way to automatically run transactions, like a test script, for a load test or something. Why else would you want to be able to replay transactions since 4 months ago?
RIS Plus, LLC
MVP - Business Apps
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Now it's time for twdavis to give a statement. Ask he this question only why he is in a SQL Server exam or why he really need, for example, a testscript.
Sure its possible. ... You just need C/DART. With C/Dart you just roll back to the exact point in time that you want.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
RIS Plus, LLC
MVP - Business Apps
The database is Native Navision 4.3. The client has made numerous erroneous changes to their Currency rates, Posting Groups, Standard Costs over the past 4 months. All activity since then has resulted in major data discrepancies. The question posed was can we 1) save a copy of the databse aside for reference, 2) "delete" all transaction activity from the current database going back to August 31, 2008, because the currency settings , posting setups, standard costs, etc. have now been corrected. 3) perform each of the transactions up to current date.
Since it is not SQL, there is no tlogs available.
We have concluded that this is not a feasible option and are trying now to establish a good base from which to proceed.
2: Technically you can delete whatever you want. The bigger question I think is whether it would be legal to delete financial historical records.
3: Related to my reply for 2, you'd have to create correcting entries instead of deleting and redoing all transactions.
There is no automated way to 'replay' transactions, so you would have to re-enter all transactions manually, which I guess if the volume is small enough could be done.
Aside from legal issues, if you have a database backup for August 31, you could create a new database with that, make sure that all set up is correct, and enter all transactions. It would be a huge task to get it just right though, and I really don't think it is legal.
RIS Plus, LLC
MVP - Business Apps
To create a new database based on a old backup and repley all postings per hand is also a way. If it is legal as Denster ask? I don't know the law in US.