Re: Suspect Databases and Hidden Attributes

From: rgn (gopinathr_at_healthasyst.com)
Date: 02/15/05


Date: Tue, 15 Feb 2005 16:02:26 +0530

Hello John,

Actually, we found out this morning that the files not only had the "Hidden"
Attribute turned on
but also the OS was interpreting them as "Operating System Protected OS
file" and the reason why these files
seemed disappeared.

We unchecked the "Hide Protected Operating System File" option from the
Tools--> Folder Options
and we were able to see the files.

Finally, I was able to attach the data file using sp_attach_db but not using
sp_attach_single_file_db.

Thanks,
Gopi

"John Bell" <JohnBell@discussions.microsoft.com> wrote in message
news:E958C72E-EB54-4F54-942B-9C16E992FCA0@microsoft.com...
> Hi
>
> It is not totally clear from your post what the actual sequence of events
> were. I don't think that just coping files should not change the file
> attributes. If you were copying from a CD/DVD then the files would be read
> only.
>
> Without properly detaching the database or shutting down SQL Server
> cleanly,
> your database would have been in a inconsistent state and thererefore the
> database would be put into recovery mode when restarted. It might be that
> this process had finished before you tried your second re-start.
>
> John
>
>
>
> "gopi" wrote:
>
>> Hello All,
>>
>> I had posted this in the SQLServer.Server group as well. I just want to
>> add
>> that after
>> a reboot of the machine, the files of databases that were in Suspect mode
>> disappeared. I had copied
>> the same file in other location while I was trying to restore the
>> databases.
>> However, even
>> those copies of these data files disappeared.
>>
>> Gopi
>>
>> 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: Database files are "Hidden" after becoming Suspect
    ... Mike Epprecht, Microsoft SQL Server MVP ... > We had created some databases on the C Drive. ... > datafile the data file was not showing up. ...
    (microsoft.public.sqlserver.server)
  • Re: 64-bit Thermal grease
    ... I can see it for databases, servers, etc., but what is there for the ... Just try to forget all the hype. ... like Suns Solaris, many of the applications are 32-bit, since they run ... and nothing to do with the operating system. ...
    (alt.comp.hardware.pc-homebuilt)
  • Visual studio.net 2003 and Access 2007
    ... I have used Visual Studio.net 2003 connecting to Access 2002 databases in ... Access 2007 wouldn't work on Windows Server 2000 operating system, ...
    (microsoft.public.vstudio.general)
  • visual studio.net 2003 and Access 2007
    ... I have used Visual Studio.net 2003 connecting to Access 2002 databases in ... Access 2007 wouldn't work on Windows Server 2000 operating system, ...
    (microsoft.public.vsnet.general)
  • visual studio.net 2003 and Access 2007 database
    ... I have used Visual Studio.net 2003 connecting to Access 2002 databases in ... Access 2007 wouldn't work on Windows Server 2000 operating system, ...
    (microsoft.public.dotnet.languages.vb)

Loading