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)
 Can't find log file in sysfiles?

Author  Topic 

loiter99
Starting Member

38 Posts

Posted - 2005-01-21 : 10:24:39
Hello,
I tried to do an emergency shrink on a trans log and got the following error:

dbcc shrinkfile ('db_log')

Could not locate file 'db_log' in sysfiles.

If I run sp_databases I can see the db, I ran dbcc checkdb on the db and everything came back fine. What gives?

thanks in advance
J

nr
SQLTeam MVY

12543 Posts

Posted - 2005-01-21 : 11:55:17
sp_databases will guive the names of the databases
dbcc shrinkfile needs the logical file name.

try
myb..sp_helpfile
to get the name.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -