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.
| 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 advanceJ |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2005-01-21 : 11:55:17
|
| sp_databases will guive the names of the databasesdbcc shrinkfile needs the logical file name.trymyb..sp_helpfileto 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. |
 |
|
|
|
|
|