August 2, 2010 at 7:15 am
I have four sets of backup files with extension .bak one is full bakcup, one is differential backup, one is filegroup backup & one is transaction log backup. How can I identify them which one is ful, which one is differential, which one is filegroup & which one is transactional log ?
Thanks in advance.
August 2, 2010 at 7:39 am
Name them appropriately?
Try restore headeronly. Should show you what's in the files.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 2, 2010 at 9:43 am
Hi,
Follow as Gila suggested.
You can run the command as follows:-
restore headeronly from disk='D:\Temp\Anna_backup_200909251644.bak'
Now on checking backup type column of the data, you can find the type of the backup.i.e.
If Backup type:
VALUE BACKUP TYPE
1 = Database
2 = Transaction log
4 = File
5 = Differential database
6 = Differential file
7 = Partial
8 = Differential partial
For More info, u can refer to BOL link below :-
http://msdn.microsoft.com/en-us/library/ms178536.aspx
🙂
With regards,
Ankur
March 15, 2011 at 10:51 am
Isn't there's also msdb.dbo.backupset.type?
Values are:
D = Database.
I = Database Differential.
L = Log.
F = File or Filegroup.
You'll have to join backupset.media_set_id with backupmediafamily.media_set_id for backupmediafamily.physical_device_name = 'YourFullBackupDirectoryAndBackupName'
Right?
March 15, 2011 at 11:34 am
RESTORE HEADERONLY as per Gail's suggestion if you have access to a SQL Server instance, SQL BAK Reader if not.
Isn't there's also msdb.dbo.backupset.type?
Values are:
D = Database.
I = Database Differential.
L = Log.
F = File or Filegroup.
You'll have to join backupset.media_set_id with backupmediafamily.media_set_id for backupmediafamily.physical_device_name = 'YourFullBackupDirectoryAndBackupName'
Right?
Yes, if you were planning to retrieve the details from the backup history tables, but RESTORE HEADERONLY is much easier, and you don't need access to the instance where the backups were originally made.
SQL BAK Explorer - read SQL Server backup file details without SQL Server.
Supports backup files created with SQL Server 2005 up to SQL Server 2017.
March 16, 2011 at 10:19 am
Easiest thing is doing what Gail mentioned.
I give Full Bkp's a .zip ext, Diff's .bak, Log's .trn, and don't use filegroup but am pretty certain any 3-char extension would work just fine
______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience
March 16, 2011 at 4:41 pm
I would use
Full backups .BAK
Diff backups .DIF
Log backups .TRN
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs" 😉
March 17, 2011 at 1:43 am
You'll have to join backupset.media_set_id with backupmediafamily.media_set_id for backupmediafamily.physical_device_name = 'YourFullBackupDirectoryAndBackupName'
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply