Solved

SQL mdf, ldf and backup locations

Posted on 2013-05-22
4
398 Views
Last Modified: 2013-06-06
If you have a SQL 2005 instance with 30 databases. Is there any easy wat to determine where on disk the actual database and log file is located, and also where the backup file is being written to?
0
Comment
Question by:pma111
  • 2
4 Comments
 
LVL 31

Accepted Solution

by:
James Murrell earned 250 total points
ID: 39187004
I use this script

SELECT name, physical_name AS current_file_location
FROM sys.master_files

Open in new window

0
 
LVL 3

Author Comment

by:pma111
ID: 39187024
Does that report on all databases in the instance?

What about backup files when using the native SQL backup utility? I assume you can declare where you want the backup file to be saved to?
0
 
LVL 75

Assisted Solution

by:Anthony Perkins
Anthony Perkins earned 250 total points
ID: 39188512
What about backup files when using the native SQL backup utility?
Viewing Information About Backups
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39188514
I assume you can declare where you want the backup file to be saved to?
Providing you are scripting out the backups you have total control of where the backups are saved.
0

Featured Post

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Alter table 4 23
SQL Query with Sum and Detail rows 2 39
Updating a column using a lookup on another table. 6 16
Sql query 107 24
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
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 extract information from SQL Server on Database, Connection and Server properties

914 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now