Re: SQL2000: Could not locate file name ... in sysfiles
From: Dan Guzman (guzmanda_at_nospam-online.sbcglobal.net)
Date: 10/14/04
- Next message: Dan Guzman: "Re: GRANT Select to all tables on a DB"
- Previous message: Jonathan Yong: "Re: How to evaluate the performance of the sql server"
- In reply to: Paul: "SQL2000: Could not locate file name ... in sysfiles"
- Next in thread: Paul: "Re: SQL2000: Could not locate file name ... in sysfiles"
- Reply: Paul: "Re: SQL2000: Could not locate file name ... in sysfiles"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 13 Oct 2004 23:06:21 -0500
Try enclosing the file name in single quotes:
DBCC SHRINKFILE ('test_db_w2_L&P', 5)
-- Hope this helps. Dan Guzman SQL Server MVP "Paul" <Paul@discussions.microsoft.com> wrote in message news:B6A5670D-8CF9-459E-B83D-B7DBB507B5FE@microsoft.com... >I got this error when I ran the dbcc shrinkfile (test_db_w2_L&P, 5). Does > anyone know how to make SQL Server recognise the database file name with > '&' > character? > > Server: Msg 8985, Level 16, State 1, Line 1 > Could not locate file 'test_DB_w2_L&P' in sysfiles. > DBCC execution completed. If DBCC printed error messages, contact your > system administrator. > > Any suggestions would be much appreciated. > > Rgds, Paul
- Next message: Dan Guzman: "Re: GRANT Select to all tables on a DB"
- Previous message: Jonathan Yong: "Re: How to evaluate the performance of the sql server"
- In reply to: Paul: "SQL2000: Could not locate file name ... in sysfiles"
- Next in thread: Paul: "Re: SQL2000: Could not locate file name ... in sysfiles"
- Reply: Paul: "Re: SQL2000: Could not locate file name ... in sysfiles"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|