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 2005 Forums
 SQL Server Administration (2005)
 sysfiles

Author  Topic 

ravilobo
Master Smack Fu Yak Hacker

1184 Posts

Posted - 2008-04-07 : 14:53:06
[code]select * from sysdatabases[/code]
give the information for all DB's, where as
[code]select * from sysfiles[/code]
gives the information only for current DB.

Is there a system table which contain the information for all the files on a server? Or Do I need to use SP_MSFOREACHDB?


------------------------
I think, therefore I am - Rene Descartes

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-04-07 : 14:59:00
Yes.
Go to Top of Page

ravilobo
Master Smack Fu Yak Hacker

1184 Posts

Posted - 2008-04-07 : 15:01:45
Thank you Sodeep!

------------------------
I think, therefore I am - Rene Descartes
Go to Top of Page
   

- Advertisement -