Re: Shrinkfile does not find the file

From: Question on SQL (qs_at_who.com)
Date: 09/13/04


Date: Mon, 13 Sep 2004 09:41:35 -0500

Thanks. It returned exactly the same file names as select * from sysfiles.

"Hari Prasad" <hari_prasad_k@hotmail.com> wrote in message
news:%23kIecYCmEHA.2412@TK2MSFTNGP10.phx.gbl...
> 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?
> >
> >
> >
>
>



Relevant Pages

  • Re: Shrinkfile does not find the file
    ... could you execute the below ... command to get the logical name for that database. ... After that use this logical name in DBCC SHRINKFILE command and try. ...
    (microsoft.public.sqlserver.server)
  • Re: Cross-database execution permissions with certificates and sch
    ... activated user cannot access objects in other schemas in this database. ... injection is defended against, however, the threat exists anywhere EXECUTE ... CREATE USER dispatcher ... the certificate is a trusted authenticator because you granted AUTHENTICATE ...
    (microsoft.public.sqlserver.security)
  • Re: Execute Persmission denied on object sp_OACreate
    ... SQL Server doesn't check permissions on indirectly referenced objects as ... You can prevent ad-hoc execution of powerful master database procs while ... >I have a user who has execute permissions on a store procedure in a>database> which in turns executes 4 stored procedures in the master database. ...
    (microsoft.public.sqlserver.security)
  • Re: SQLCE performance from .NET CF v2.0
    ... Please remember when bulk inserting is being executed against SQL CE, ... > local database functionality. ... > database technology and I am considering switching to SQLCE at the same ... > execute the prepared statement again. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: CFS: some bad numbers with Java/database threading
    ... execute multiple queries on the same data, ... workload is "pathological". ... lock-less algorithms (like variations on optimistic locking) because ... if the locking is implemented using database ...
    (Linux-Kernel)