|
|
|
Say Hey Kid
      
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 6:56 AM
Points: 679,
Visits: 953
|
|
Hi,
I need to know some information about backups.
1) in SQL Server 2005 where is the table that as the information about all the backups that where made to databases?
2) If i make a backup of one database in query window , like:
backup database test to disk ='c:\example.BAK'
will this backup be stored in that table (point 1)?
3) All the backups made to system databases (master, model, etc...) are stored in that table too?
4) Suppose that i have a database named test1 and i make two backups from query window, then i restore one of the backups that i made. The first Test1 database will be replaced by the backup of the test1 backup information. will the two backups made to the first test1 database will still be in the table of backups? or because the database was restored the backups associated with it will be deleted?
Thank you
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Tuesday, April 23, 2013 3:40 AM
Points: 961,
Visits: 794
|
|
river1 (4/29/2010) Hi,
I need to know some information about backups.
1) in SQL Server 2005 where is the table that as the information about all the backups that where made to databases?
2) If i make a backup of one database in query window , like:
backup database test to disk ='c:\example.BAK'
will this backup be stored in that table (point 1)?
3) All the backups made to system databases (master, model, etc...) are stored in that table too?
4) Suppose that i have a database named test1 and i make two backups from query window, then i restore one of the backups that i made. The first Test1 database will be replaced by the backup of the test1 backup information. will the two backups made to the first test1 database will still be in the table of backups? or because the database was restored the backups associated with it will be deleted?
Thank you
1) msdb..backupset (msdb..backupfile also has lot's of backup info) 2) yes, table above 3) yes, all backups 4) don't follow you
/* ----------------------------- */ Tochter aus Elysium, Wir betreten feuertrunken, Himmlische, dein Heiligtum!
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: 2 days ago @ 11:37 AM
Points: 2,551,
Visits: 7,201
|
|
4) The backup related tables in MSDB store information about the backups and restores that have taken place .... the history of activity. Not the actual backup data. None of the history information gets deleted unless you run jobs to delete it.
|
|
|
|
|
Say Hey Kid
      
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 6:56 AM
Points: 679,
Visits: 953
|
|
point 4:
So , if i have a database named test1 and make three backups and then restore one of the backups, those three backups will still be in that table, because they where made in that SQL Server 2005 instance.
You can only delete the historyc if you restore the msdb will and older backup or if you directly delete records from this table, correct?
Thank you.
|
|
|
|
|
Say Hey Kid
      
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 6:56 AM
Points: 679,
Visits: 953
|
|
Point 1:
"msdb..backupset (msdb..backupfile also has lot's of backup info)"
Didn't understood... what's the correct table to query and see the backups?
Thnak you
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Tuesday, April 23, 2013 3:40 AM
Points: 961,
Visits: 794
|
|
river1 (4/29/2010) Point 1:
"msdb..backupset (msdb..backupfile also has lot's of backup info)"
Didn't understood... what's the correct table to query and see the backups?
Thnak you
Both tables contain information on backups taken, take a look for yourself. They are related.
/* ----------------------------- */ Tochter aus Elysium, Wir betreten feuertrunken, Himmlische, dein Heiligtum!
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Tuesday, April 23, 2013 3:40 AM
Points: 961,
Visits: 794
|
|
river1 (4/29/2010) point 4:
So , if i have a database named test1 and make three backups and then restore one of the backups, those three backups will still be in that table, because they where made in that SQL Server 2005 instance.
You can only delete the historyc if you restore the msdb will and older backup or if you directly delete records from this table, correct?
Thank you.
The tables contain all information until purged. When you drop a db through the GUI, you are always asked if you want to delete backup/restore history. These are some of the tables it deletes from
/* ----------------------------- */ Tochter aus Elysium, Wir betreten feuertrunken, Himmlische, dein Heiligtum!
|
|
|
|
|
Say Hey Kid
      
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 6:56 AM
Points: 679,
Visits: 953
|
|
Point 1:
It seems that this table backupset only contains information of the backups that where made to backup devices. At the company we make backups to file. when i make a backup like:
backup database sgt to disk ='c:\example.BAK' the name column of the table appears as NULL , why?
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Tuesday, April 23, 2013 3:40 AM
Points: 961,
Visits: 794
|
|
river1 (4/29/2010) Point 1:
It seems that this table backupset only contains information of the backups that where made to backup devices. At the company we make backups to file. when i make a backup like:
backup database sgt to disk ='c:\example.BAK' the name column of the table appears as NULL , why?
I had also suggested that you look at msdb..backupfile
The name appears as Null because you did not give the backup a name, a complete backup statement looks like (note the inclusion of name and description, these are not always necessary, but may be helpful in some situations)
backup database [Test] to disk = 'E:\TmpBkp\Test\Test__Full.bak' with format, init, MaxTransferSize = 4194304, BufferCount = 64, name = 'Test Full backup.', description = 'Test DB Full Backup 20100428'
/* ----------------------------- */ Tochter aus Elysium, Wir betreten feuertrunken, Himmlische, dein Heiligtum!
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: 2 days ago @ 12:35 PM
Points: 6,650,
Visits: 5,666
|
|
|
|
|