March 9, 2010 at 5:35 am
iam in production area, i want tyo prepare a report which contains the following columns SQL Backup Location , Full Backup - Time,Diff backup - Time,Log backup - Time, can u pls send me the query to find all the inform,ation in sql2000 as well as in 2005
Ur response is highly appreciated .
March 9, 2010 at 6:51 am
Hi,
I think you can query 'backupmediafamily' table in MSDB for backup locations.
[font="Verdana"]Renuka__[/font]
March 9, 2010 at 6:54 am
Start here, everything you need is in several of the tables listed:
ms-help://MS.SQLCC.v10/MS.SQLSVR.v10.en/s10de_6tsql/html/aa615add-54e6-40f5-8b55-3728b26884ee.htm
March 9, 2010 at 7:14 am
thanks for ur responses the link which u mentioned is not opening .
March 9, 2010 at 7:35 am
Not sure why it doesn't work. Copy and paste it to the address bar, that worked for me.
Or, you could look it up in Books Online by entering System Tables in the Look For on the Index tab.
March 10, 2010 at 9:38 am
Take help from -->http://www.mssqltips.com/tip.asp?tip=1860
Also, include type column from backupset table for type of backup performed.
MJ
March 10, 2010 at 5:00 pm
ramyours2003 (3/9/2010)
thanks for ur responses the link which u mentioned is not opening .
The link that Lynn posted will work if you paste it into the URL box in SQL Server Help... but it needs to be SQL Server 2008.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 11, 2010 at 2:53 am
You can try this one :
SELECT DATABASE_NAME,
PHYSICAL_DEVICE_NAME AS BACKUP_LOCATION,
BACKUP_SIZE,
BACKUP_START_DATE,
BACKUP_FINISH_DATE ,
BACKUPTYPE =CASE TYPE WHEN 'D' THEN 'FULL DATABASE BACKUP'
WHEN 'I' THEN 'DIFFERENTIAL BACKUP'
WHEN 'L' THEN 'LOG BACKUP'
WHEN 'F' THEN 'FILE/FILEGROUP BACKUP'
END
FROM MSDB..BACKUPSET BCKSET
INNER JOIN MSDB..BACKUPMEDIAFAMILY BCKFMLY
ON BCKSET.MEDIA_SET_ID = BCKFMLY.MEDIA_SET_ID
March 11, 2010 at 4:15 am
Good one rakesh... 🙂
Cheers,
- Win.
" Have a great day "
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply