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 2000 Forums
 SQL Server Administration (2000)
 database information

Author  Topic 

vicki
Posting Yak Master

117 Posts

Posted - 2002-04-11 : 15:43:21

Is any one here know what is the comand to run to find out the following information of all the databases in SQL 6.5?

Path of dat files
Path of backup files
Date Created
Date Last updated/used

thanks

joldham
Wiseass Yak Posting Master

300 Posts

Posted - 2002-04-11 : 16:01:36
Not sure if this will help. I did this in SQL 2000 and I wouldn't think it has changed too much.

SELECT a.name, a.dbid, a.crdate, a.filename DataFile, b.filename LogFile
FROM sysdatabases a,
(Select dbid, filename
FROM sysaltfiles
WHERE right(rtrim(filename),3) = 'LDF') b
Where a.dbid = b.dbid

Could not find anything on last used for the database.

Jeremy

Go to Top of Page
   

- Advertisement -