File Information | Database Journal

File Information

Written By
John Percival
John Percival
Nov 29, 1999
2 minute read


As part of the system documentation I maintain about my main SQL Server I wanted to a report detailing the
locations of all the database files. It also includes all of the options you can set when creating the DB,
including log files. I also use it to help monitor growth over time.


This is an Excel Workbook (97) designed to provide a formatted report, detailing information about all of the
database files on your server. It uses ADO to query system tables, and simple macros format the results
into a report.
A new Worksheet is produced each time the main macro is run, which is kept within the Workbook for
future reference.


Unfortunately there was two small bugs in the first version posted here, the template sheet was
protected and the Server cell reference in the VBA code was incorrect. These have now been fixed.


Installation

  • 1. Download DBFiles.zip (See below)
  • 2. Open the Excel file (DBFiles.xls) contained within
  • 3. On the Overview sheet, set your server name as indicated.
  • 4. Hit Ctrl+Shift+F and watch the report appear


Please note that this is designed for SQL Server 7, and uses integrated security by default.
You can easily edit the macro to use SQL Server Logins if you wish.


Download


Please note that this program is provided without any warranty or assurances of any kind.
Use it at your own risk. Commercial distribution or distribution for profit in any form is strictly forbidden without prior permission from the author.

Any comments would be greatly appreciated.
Download DBFiles.

Database Journal Logo

DatabaseJournal.com publishes relevant, up-to-date and pragmatic articles on the use of database hardware and management tools and serves as a forum for professional knowledge about proprietary, open source and cloud-based databases--foundational technology for all IT systems. We publish insightful articles about new products, best practices and trends; readers help each other out on various database questions and problems. Database management systems (DBMS) and database security processes are also key areas of focus at DatabaseJournal.com.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.