Re: Database files are "Hidden" after becoming Suspect

From: Mike Epprecht \(SQL MVP\) (mike_at_epprecht.net)
Date: 02/14/05


Date: Mon, 14 Feb 2005 23:16:46 +0100

Hi

This is an OS issue, but here goes:

Run
ATTRIB
This returns all the files that are hidden in the current directory.

If some of your files are listed, run
ATTRIB -H <filename.ext>

This will remove the Hidden attribute on the file.

Regards
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mike@epprecht.net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

"rgn" <gopinathr@healthasyst.com> wrote in message
news:OUyfFwoEFHA.3244@TK2MSFTNGP15.phx.gbl...
> We had created some databases on the C Drive. Today the C drive went bad
and
> all the databases that
> were on the C Drive became suspect.
>
> I tried to copy the files onto another drive and I did to the D drive.
> However, when I tried to attach the
> datafile the data file was not showing up. I checked the properties and
the
> file's "Read Only" attribute was checked.
> I unchecked it. However, the "Hidden" attribute has been greyed out and
> looks like this is the reason why
> the files are not showing up.
>
> Would someone know how to address this problem ?
>
> Thanks,
> rgn
>
>



Relevant Pages

  • Re: Suspect Databases and Hidden Attributes
    ... but also the OS was interpreting them as "Operating System Protected OS ... I was able to attach the data file using sp_attach_db but not using ... >> a reboot of the machine, the files of databases that were in Suspect mode ... >> I tried to attach the datafile the data file was not showing up. ...
    (microsoft.public.sqlserver.programming)
  • Re: corrupt msdb
    ... > collation than the other system databases. ... > Tibor Karaszi, SQL Server MVP ... > "Jacco Schalkwijk" wrote in message ... rename the msdb data and log files and put ...
    (microsoft.public.sqlserver.server)
  • Re: i cannot start sqlservers service
    ... > restore backup of the master ... >> and msdb databases. ... >> Tibor Karaszi, SQL Server MVP ...
    (microsoft.public.sqlserver.server)
  • Re: Unable to upgrade SQL 2000 Evaluation to SQL 2000 retail version
    ... there) and restore that on your new installation. ... "Lazaros Lazarou" wrote in message ... >> install Standard Edition and re-attach your databases. ... >> SQL Server MVP ...
    (microsoft.public.sqlserver.setup)
  • Newbie Help!
    ... we are using Sharepoint POrtal server with a SQL ... and I notice the LDF is showing 0kb size. ... The msdb.mdf is also showing as suspect. ... The MDF's are on a RAID array with 270GB free space so the databases did not ...
    (microsoft.public.sqlserver.server)