Re: Shrinkfile does not find the file
From: Hari Prasad (hari_prasad_k_at_hotmail.com)
Date: 09/11/04
- Next message: Renato Cortes: "ideal db server specs for sqlserver2k standard"
- Previous message: Hari Prasad: "Re: Server"
- In reply to: Question on SQL: "Shrinkfile does not find the file"
- Next in thread: Question on SQL: "Re: Shrinkfile does not find the file"
- Reply: Question on SQL: "Re: Shrinkfile does not find the file"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 11 Sep 2004 12:38:58 -0500
Hi,
Looks like the logical name have some issues.. could you execute the below
command to get the logical name for that database.
sp_helpdb 'databasename'
After that use this logical name in DBCC SHRINKFILE command and try.
Thanks
Hari
MCDBA
"Question on SQL" <qs@who.com> wrote in message
news:%23a9G3p2lEHA.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?
>
>
>
- Next message: Renato Cortes: "ideal db server specs for sqlserver2k standard"
- Previous message: Hari Prasad: "Re: Server"
- In reply to: Question on SQL: "Shrinkfile does not find the file"
- Next in thread: Question on SQL: "Re: Shrinkfile does not find the file"
- Reply: Question on SQL: "Re: Shrinkfile does not find the file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|