Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DBCC SHRINKFILE

Status
Not open for further replies.

latitude800

IS-IT--Management
Feb 11, 2006
19
0
0
US
I am trying to skrink the log files for a database logical name GPSDYNAMICSLog.ldf, I want to have 2 MB size, and I do the following.

When I use DBCC SHRINKFILE (GPSDYNAMICSLog, 2) I get the following:
Server: Msg 8985, Level 16, State 1, Line 1
Could not locate file 'GPSDYNAMICSLog' in sysfiles.

I logical file name in the sysfiles is GPSDYNAMICSLog.ldf

Any suggestions? Appreciate your assitance in advance

Thanks
James
 
GPSDYNAMICSLog.ldf is the physical name, not the logical name.

Check the sysfiles table and make sure you have the correct logical name.

Also make sure that you are executing this command within the correct database.

Denny
MCSA (2003) / MCDBA (SQL 2000) / MCTS (SQL 2005)

--Anything is possible. All it takes is a little research. (Me)
[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top