March 11, 2008 at 8:49 am
my company has a heavily transactional database. their backup procedure is a full backup once a week and a diff backup once daily.
This leaves a potential to lose a full day of transactions.
Is there a way i can extract the data from the tran log since the most recent diff backup, so as to demonstrate how much data they could potentially lose?
March 11, 2008 at 9:07 am
winston Smith (3/11/2008)
my company has a heavily transactional database. their backup procedure is a full backup once a week and a diff backup once daily.This leaves a potential to lose a full day of transactions.
Is there a way i can extract the data from the tran log since the most recent diff backup, so as to demonstrate how much data they could potentially lose?
Yes, it is called log backups. Check books online for "backup log".
Then when you restore the db you will need to restore the last full backup, the very last differential backup, and then all the subsequent log backups. More info on http://technet.microsoft.com/en-us/library/ms186858.aspx
Regards,
Andras
March 11, 2008 at 9:17 am
thanks for the reply. i am aware of log backups. the reason i am asking the question is because i want to have a strong case when i go to my manager asking for us to alter our backup strategedy to include log backups.
I need to know the total number of transactions ina log so that i can demonstrate how many transactions we could lose by not backing up the tran log.
March 11, 2008 at 9:22 am
winston Smith (3/11/2008)
thanks for the reply. i am aware of log backups. the reason i am asking the question is because i want to have a strong case when i go to my manager asking for us to alter our backup strategedy to include log backups.I need to know the total number of transactions ina log so that i can demonstrate how many transactions we could lose by not backing up the tran log.
I assume you are on 2005, then you can use:
dbcc log (1,-1) with tableresults
the first number is the dbid
This will not give you back all the log records since the last diff backup (either more or less, depends on the active log partion), but gives you quite a lot of info. Search for
LOP_BEGIN_XACT for transaction begins. Not sure how this information will help. Information like today's sales would be lost is probably more compelling 🙂
Regards,
Andras
March 11, 2008 at 9:28 am
Ya beat me to it, Andras... 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
March 11, 2008 at 9:33 am
Thanks guys. il look into that now! kind regards.
March 11, 2008 at 10:23 am
Or urn Profiler, look for insert/udpate/delete stuff, save the file for a day and scroll through it at a meeting. Set your scroll to move slow and let it run as you talk.
Makes a nice presentation as you're talking.
March 11, 2008 at 10:37 am
Jeff Moden (3/11/2008)
Ya beat me to it, Andras... 😀
Finally I got lucky enough 🙂
Andras
March 11, 2008 at 10:38 am
Steve Jones - Editor (3/11/2008)
Or urn Profiler, look for insert/udpate/delete stuff, save the file for a day and scroll through it at a meeting. Set your scroll to move slow and let it run as you talk.Makes a nice presentation as you're talking.
It is sad that you need to persuade them using such visual "tricks" though, but Steve's suggestion could be very effective (called shock therapy :D)
Andras
March 11, 2008 at 10:39 am
Hi,
To strenghen your case, ask your manager what the Recovery Time and Recovery Point Objectives (e.g. RTO and RPO) are for the company database and cross-check whether the current backup strategy is meeting these requirements. Lost data is lost data, regardless of how many transactions. Any amount of lost data is too much.
Thanks,
Phillip Cox
MCITP - DBAdmin
March 11, 2008 at 10:43 am
Im loving these tactics. its almost manipulation of people, getting them to give the answer you want on their own!!! Brilliant!
March 11, 2008 at 10:59 am
It's even simpler than that... if for every byte of data lost, the manager had to pay a fine of $100, how soon do you think that lame-o backup strategy would be improved? Call his wife on the phone and ask her if he lost 2 paychecks in a row gambling, would he actually live through it? 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 12 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic. Login to reply