timscronin
MIS
I knew how to do this in sql 2000, is there a script that would show all databases and their file locations on a sql 2005 server
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Create Table #Temp
(FieldId Int,
GroupId Int,
Size Int,
maxSize int,
growth int,
status int,
perf int,
name varchar(1000),
filename varchar(1000))
Insert Into #Temp
exec sp_msforeachdb 'Select * from [?]..sysfiles'
Select * From #Temp
Drop Table #Temp
sp_msforeachdb 'select * from ?..sysfiles'
Use Master
GO
Select db.Name, db.Database_ID, mf.Name, mf.physical_name
from sys.databases db
join sys.Master_files mf
on db.Database_ID = mf.Database_ID
where db.Source_Database_ID is NULL
Order by db.Name