Re: Shrinkfile does not find the file

From: Stephen Yuan Jiang [MSFT] (syjiang_at_online.microsoft.com)
Date: 09/13/04


Date: Mon, 13 Sep 2004 14:25:54 -0700

This indeed looks strange to me. One more thing to try: If you pass in
fileId (you can get it from sysfiles) instead of file name in the first
parameter of DBCC SHRINKFILE, will shrink recognize the file?

-- 
Stephen Jiang
Microsoft SQL Server Storage Engine
This posting is provided "AS IS" with no warranties, and confers no rights.
"Question on SQL" <qs@who.com> wrote in message
news:#a9G3p2lEHA.3428@TK2MSFTNGP14.phx.gbl...
> Hi group,
>
> when I try to
>
> DBCC SHRINKFILE ('GCSFSSYSlog', 200,TRUNCATEONLY  )
>
> I get
>
> Server: Msg 8985, Level 16, State 1, Line 1
> Could not locate file 'GCSFSSYSlog' in sysfiles.
> DBCC execution completed. If DBCC printed error messages, contact your
> system administrator.
>
> However,
>
> select * from sysfiles where name = 'GCSFSSYSlog'
>
> does get a result.
>
> What's wrong?
>
>
>


Relevant Pages

  • Shrinkfile does not find the file
    ... Could not locate file 'GCSFSSYSlog' in sysfiles. ... If DBCC printed error messages, ... system administrator. ...
    (microsoft.public.sqlserver.server)
  • error message
    ... Could not locate file 'wslogdb62_log' in sysfiles. ... If DBCC printed error messages, ... contact your system administrator. ...
    (microsoft.public.sqlserver.connect)

Loading