Solved

backups files and documentation

Posted on 2007-04-03
6
390 Views
Last Modified: 2012-08-14
is there a way to get the list of the log file location from all the databases?

I am using sp_helpdb, but I have several database was wondering if there was a query I can use.  Can I also query for the location of .bak files?  thanks.

Also, I am trying to document a current backup process for a new position that I took, any recommendations/best practices for the documentation of a backup process?

Thanks!!
0
Comment
Question by:yanci1179
  • 4
6 Comments
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 18844439
CREATE TABLE #temp(NAME VARCHAR(100), FileID INT, FileName VARCHAR(1000), fileGroup VARCHAR(100), size VARCHAR(100), MaxSize VARCHAR(1000),  growth VARCHAR(100), Usage VARCHAR(1000))
INSERT INTO #temp
EXEC sp_MSForEachDB "USE ?;exec sp_helpFile "

SELECT NAME,FileName FROM #temp WHERE Usage = 'Log Only'
0
 
LVL 9

Expert Comment

by:nito8300
ID: 18844479
to view backup info try table backupfile in msdb
0
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 18844540
-- view backup file details
use msdb
select distinct f.device_type, f.physical_device_name, f.logical_device_name, b.database_name
from backupmediafamily f, backupset b  
where b.backup_finish_date = (select MAX(backup_finish_date) from backupmediafamily
                               INNER JOIN backupset ON backupmediafamily.media_set_id=backupset.media_set_id
                               where (backupmediafamily.device_type=5 or backupmediafamily.device_type=105))
and b.media_set_id = f.media_set_id
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 500 total points
ID: 18844561
sorry, try this script to view the backup details

use msdb
select  b.database_name,f.device_type, f.physical_device_name, f.logical_device_name, b.backup_finish_date
from backupmediafamily f, backupset b  
WHERE b.media_set_id = f.media_set_id
0
 

Author Comment

by:yanci1179
ID: 18844976
thanks aneeshattingal!!

Do you know how i can find out how the server and disks(hardware) are configured.  I would like to know if RAID is running and what kind.
0
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 18855598
Hardware Configurations, i am not sure about it. usually that will be part of OS and sql server just take assistance from it
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question