Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Backup Date

Author  Topic 

boggyboy
Yak Posting Veteran

57 Posts

Posted - 2011-09-21 : 12:33:44
Hi How would I find out the date my Database was last backed up?

Nick W Saban

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-09-21 : 12:35:32
Easiest way is to right click the database in SSMS, go to properties, and it'll be the first field.

Do you want to do it via T-SQL? Or is the GUI-way sufficient?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

boggyboy
Yak Posting Veteran

57 Posts

Posted - 2011-09-21 : 13:40:04
Actually T-SQL would be preferred.

Nick W Saban
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-09-21 : 13:50:52
[code]
SELECT
database_name AS DatabaseName,
MAX(backup_start_date) AS BackupDate
FROM msdb.dbo.backupset
WHERE type = 'D'
GROUP BY database_name
[/code]

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2011-09-21 : 14:21:11
Some more detail on Backup History queries here:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=54300#273265
Go to Top of Page
   

- Advertisement -